1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/rust/pam/build.rs
David Mulder 33bdebb7c8 Enable rust cargo test in Samba make test
Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23 14:21:33 +00:00

11 lines
511 B
Rust

fn main() {
println!("cargo:rerun-if-changed=build.rs");
// ignore errors here since older versions of pam do not ship the pkg-config `pam.pc` file.
// Not setting anything here will fall back on just blindly linking with `-lpam`,
// which will work on environments with libpam.so, but no pkg-config file.
let _ = pkg_config::Config::new()
.atleast_version("1.3.0")
.probe("pam");
println!("cargo:rustc-env=LD_LIBRARY_PATH=../../bin/shared:../../bin/shared/private/");
}