Skip to content

Commit

Permalink
fix linkage for frida-gum script example for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jejuisland87654 committed Nov 12, 2024
1 parent f07168b commit 614210c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/gum/script/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
fn main() {
println!("cargo:rustc-link-arg=-rdynamic");

#[cfg(target_os = "macos")]
println!("cargo:rustc-link-lib=dylib=c++");
}
3 changes: 3 additions & 0 deletions frida-gum-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

0 comments on commit 614210c

Please sign in to comment.