diff --git a/examples/gum/script/build.rs b/examples/gum/script/build.rs index 538285b..71f3e38 100644 --- a/examples/gum/script/build.rs +++ b/examples/gum/script/build.rs @@ -1,3 +1,6 @@ fn main() { println!("cargo:rustc-link-arg=-rdynamic"); + + #[cfg(target_os = "macos")] + println!("cargo:rustc-link-lib=dylib=c++"); } diff --git a/frida-gum-sys/build.rs b/frida-gum-sys/build.rs index 236704d..892282d 100644 --- a/frida-gum-sys/build.rs +++ b/frida-gum-sys/build.rs @@ -242,4 +242,7 @@ fn main() { #[cfg(all(feature = "js", target_os = "macos"))] println!("cargo:rustc-link-lib=dylib=c++"); + + #[cfg(all(feature = "js", target_os = "macos"))] + println!("cargo:rustc-link-lib=resolv"); }