ctdb-server: Remove duplicate logic
[samba4-gss.git] / rust / pam / build.rs
blob11313da3e5c9e83019caff1e820231a27e50b866
1 fn main() {
2     println!("cargo:rerun-if-changed=build.rs");
3     // ignore errors here since older versions of pam do not ship the pkg-config `pam.pc` file.
4     // Not setting anything here will fall back on just blindly linking with `-lpam`,
5     // which will work on environments with libpam.so, but no pkg-config file.
6     let _ = pkg_config::Config::new()
7         .atleast_version("1.3.0")
8         .probe("pam");
9     println!("cargo:rustc-env=LD_LIBRARY_PATH=../../bin/shared:../../bin/shared/private/");