Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Commit 02dffa2

Browse files
committed
[lucetc] Use -shared linker flag on BSD platforms
1 parent d0becd0 commit 02dffa2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lucetc/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,9 @@ fn ldflags_default(target: &Triple) -> String {
415415
use target_lexicon::OperatingSystem;
416416

417417
match target.operating_system {
418-
OperatingSystem::Linux => "-shared",
418+
OperatingSystem::Linux | OperatingSystem::Freebsd |
419+
OperatingSystem::Dragonfly | OperatingSystem::Netbsd |
420+
OperatingSystem::Openbsd => "-shared",
419421
OperatingSystem::Darwin | OperatingSystem::MacOSX { .. } => {
420422
"-dylib -dead_strip -export_dynamic -undefined dynamic_lookup"
421423
}

0 commit comments

Comments
 (0)