bcachefs-tools/build.rs
Gabriel de Perthuis cd817e374e 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.

Signed-off-by: Gabriel de Perthuis <g2p.code@gmail.com>
2025-03-22 09:00:02 +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();
}