Mercurial > crates > nonstick
diff build.rs @ 90:f6186e41399b
Miscellaneous fixes and cleanup:
- Rename `get_user` to `username` and `get_authtok` to `authtok`.
- Use pam_strerror for error messages.
- Add library linkage to build.rs (it was missing???).
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sat, 14 Jun 2025 09:30:16 -0400 |
parents | a638a45e5f1f |
children | 5ddbcada30f2 |
line wrap: on
line diff
--- a/build.rs Fri Jun 13 05:22:48 2025 -0400 +++ b/build.rs Sat Jun 14 09:30:16 2025 -0400 @@ -4,6 +4,7 @@ fn main() { if cfg!(feature = "link") { + println!("cargo::rustc-link-lib=pam"); println!("cargo::rustc-check-cfg=cfg(pam_impl, values(\"linux-pam\",\"openpam\"))"); let common_builder = bindgen::Builder::default() .merge_extern_blocks(true) @@ -16,7 +17,7 @@ .allowlist_function("pam_get_user") .allowlist_function("pam_get_authtok") .allowlist_function("pam_end") - .dynamic_link_require_all(true) + .allowlist_function("pam_strerror") .default_macro_constant_type(MacroTypeVariation::Unsigned); let linux_builder = common_builder