summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorVolker Schlecht <47375452+VlkrS@users.noreply.github.com>2024-10-29 15:11:49 +0100
committerGitHub <noreply@github.com>2024-10-29 19:41:49 +0530
commit51978a76540cac72dd35528dd023c3fc6d5eeca6 (patch)
tree3af5b6436901f9c1a83bdd70bee6f49816584cda /ext
parentefb5e912e5ef6745fc7fdfb1a84b5bd362548d61 (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')
-rw-r--r--ext/napi/lib.rs6
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,