bcachefs-tools/build.rs
Gabriel de Perthuis 3cc5d7fd53 Add a table of system dependencies with minimum versions
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.
2024-10-28 10:42:57 +00:00

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();
}