diff --git a/phper/build.rs b/phper/build.rs index 60e23688..78e1c7a6 100644 --- a/phper/build.rs +++ b/phper/build.rs @@ -12,6 +12,13 @@ use phper_sys::*; fn main() { phper_build::register_configures(); + + #[cfg(target_os = "macos")] + { + println!("cargo:rustc-cdylib-link-arg=-undefined"); + println!("cargo:rustc-cdylib-link-arg=dynamic_lookup"); + } + assert_eq!( USING_ZTS, 0, "PHPER not support ZTS mode now (php built with `--enable-maintainer-zts` or \