mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
This documents and enforces minimum requirements for C library dependencies. At the moment versions were picked from debian bookworm (debian stable since 2023-06), except blkid (util-linux) where 2.40.1 is required: https://github.com/koverstreet/bcachefs-tools/pull/347 libaio is excluded because it doesn't provide a pkg-config file. Also remove libscrypt from debian/control since we use the libsodium implementation.
11 lines
316 B
Rust
11 lines
316 B
Rust
fn main() {
|
|
println!("cargo:rustc-link-search=.");
|
|
println!("cargo:rerun-if-changed=libbcachefs.a");
|
|
println!("cargo:rustc-link-lib=static:+whole-archive=bcachefs");
|
|
|
|
// libaio is missing a pkg-config file
|
|
println!("cargo:rustc-link-lib=aio");
|
|
|
|
system_deps::Config::new().probe().unwrap();
|
|
}
|