Skip to content

Commit

Permalink
fix(ext/napi): export dynamic symbols list for {Free,Open}BSD (#26605)
Browse files Browse the repository at this point in the history
The two BSD ports are reusing the Linux code here.
  • Loading branch information
VlkrS authored and bartlomieju committed Oct 29, 2024
1 parent 99febad commit 6f68793
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/napi/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,11 @@ pub fn print_linker_flags(name: &str) {
symbols_path,
);

#[cfg(target_os = "linux")]
#[cfg(any(
target_os = "linux",
target_os = "freebsd",
target_os = "openbsd"
))]
println!(
"cargo:rustc-link-arg-bin={name}=-Wl,--export-dynamic-symbol-list={}",
symbols_path,
Expand Down

0 comments on commit 6f68793

Please sign in to comment.