mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
* Use pkg-config to link against pam Some distros, such as nixos, require more than just '-lpam' to locate the library. Adding a naive pkg-config invocation to the pam FFI crate allows pam_kanidm to build on my system, where before this change it did not. * Update contributors Add myself, as requested
9 lines
370 B
Rust
9 lines
370 B
Rust
fn main() {
|
|
// 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");
|
|
}
|