comparison build.rs @ 116:a12706e42c9d

Logging, macros, and building: - Changes logging API to accept the `Location` of the log statement. Fixes OpenPAM implementation. - Stops publicly exporting doc macros. - Uses dlopen to detect the PAM library rather than header jankery.
author Paul Fisher <paul@pfish.zone>
date Sun, 29 Jun 2025 18:27:51 -0400
parents 2346fd501b7a
children
comparison
equal deleted inserted replaced
115:1e11a52b4665 116:a12706e42c9d
41 let openpam_builder = common_builder 41 let openpam_builder = common_builder
42 .clone() 42 .clone()
43 // This function is not available in Linux-PAM. 43 // This function is not available in Linux-PAM.
44 // That means if somebody tries to run a binary compiled for 44 // That means if somebody tries to run a binary compiled for
45 // OpenPAM against a different impl, it will fail. 45 // OpenPAM against a different impl, it will fail.
46 .allowlist_function("openpam_log") 46 .allowlist_function("_openpam_log")
47 .header_contents( 47 .header_contents(
48 "openpam.h", 48 "openpam.h",
49 r#" 49 r#"
50 #include <security/pam_types.h> 50 #include <security/pam_types.h>
51 #include <security/openpam.h> 51 #include <security/openpam.h>