From acfbeb78824acbeb09b6a137b73c268c1fe6c42a Mon Sep 17 00:00:00 2001 From: jejuisland87654 Date: Sun, 15 Dec 2024 07:36:16 +0100 Subject: [PATCH] fix linkage for frida-gum script example for macos (#180) * fix linkage for frida-gum script example for macos * format --- examples/gum/script/build.rs | 3 +++ frida-gum-sys/build.rs | 3 +++ 2 files changed, 6 insertions(+) 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"); }