We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$Config{archlib}
1 parent 7ee0e06 commit 00a3a04Copy full SHA for 00a3a04
libperl-sys/build.rs
@@ -32,6 +32,10 @@ fn main() {
32
let perl = PerlConfig::default();
33
perl.emit_cargo_ldopts();
34
35
+ let archlib = String::from(&perl.dict["archlib"]);
36
+ let perl_h = Path::new(&archlib).join("CORE/perl.h");
37
+ let cop_h = Path::new(&archlib).join("CORE/cop.h");
38
+
39
let ccopts = perl.read_ccopts().unwrap();
40
println!("# perl ccopts = {:?}, ", ccopts);
41
@@ -86,8 +90,8 @@ fn main() {
86
90
87
91
.opaque_type("timex")
88
92
89
- .allowlist_file("/usr/lib64/perl5/CORE/perl.h")
- .allowlist_file("/usr/lib64/perl5/CORE/cop.h")
93
+ .allowlist_file(perl_h.to_str().unwrap())
94
+ .allowlist_file(cop_h.to_str().unwrap())
95
.allowlist_item("opcode")
96
.allowlist_item("(Perl|perl|PL)_.*")
97
.allowlist_item("([SAHRGC]V|xpv).*")
0 commit comments