From a82b590ae8011f85d302a072c6be45fef0523afa Mon Sep 17 00:00:00 2001 From: chenhuaiyuan <343938938@qq.com> Date: Thu, 1 Sep 2022 12:55:30 +0800 Subject: [PATCH 1/2] solve macos compilation problem --- phper/build.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phper/build.rs b/phper/build.rs index 60e23688..396ce1cb 100644 --- a/phper/build.rs +++ b/phper/build.rs @@ -12,6 +12,11 @@ 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 \ From f9c47871324c67e9112f50aa663403ec16724d54 Mon Sep 17 00:00:00 2001 From: chy <343938938@qq.com> Date: Thu, 1 Sep 2022 19:13:40 +0800 Subject: [PATCH 2/2] solve macos compilation problem Co-authored-by: jmjoy <918734043@qq.com> --- phper/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phper/build.rs b/phper/build.rs index 396ce1cb..78e1c7a6 100644 --- a/phper/build.rs +++ b/phper/build.rs @@ -12,11 +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 \