diff options
author | Volker Schlecht <47375452+VlkrS@users.noreply.github.com> | 2024-10-29 15:11:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 19:41:49 +0530 |
commit | 51978a76540cac72dd35528dd023c3fc6d5eeca6 (patch) | |
tree | 3af5b6436901f9c1a83bdd70bee6f49816584cda /ext/napi/lib.rs | |
parent | efb5e912e5ef6745fc7fdfb1a84b5bd362548d61 (diff) |
fix(ext/napi): export dynamic symbols list for {Free,Open}BSD (#26605)
The two BSD ports are reusing the Linux code here.
Diffstat (limited to 'ext/napi/lib.rs')
-rw-r--r-- | ext/napi/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/napi/lib.rs b/ext/napi/lib.rs index 0d41bb40f..20f924bdb 100644 --- a/ext/napi/lib.rs +++ b/ext/napi/lib.rs @@ -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, |