Skip to content

Commit e81ef23

Browse files
authored
solve macos compilation problem (#43)
1 parent 8d99c6b commit e81ef23

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

phper/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ use phper_sys::*;
1212

1313
fn main() {
1414
phper_build::register_configures();
15+
16+
#[cfg(target_os = "macos")]
17+
{
18+
println!("cargo:rustc-cdylib-link-arg=-undefined");
19+
println!("cargo:rustc-cdylib-link-arg=dynamic_lookup");
20+
}
21+
1522
assert_eq!(
1623
USING_ZTS, 0,
1724
"PHPER not support ZTS mode now (php built with `--enable-maintainer-zts` or \

0 commit comments

Comments
 (0)