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

Commit 47cf74a

Browse files
committed
[lucetc] Use -shared linker flag on BSD platforms
1 parent 27fa6a4 commit 47cf74a

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
@@ -395,7 +395,9 @@ fn ldflags_default(target: &Triple) -> String {
395395
use target_lexicon::OperatingSystem;
396396

397397
match target.operating_system {
398-
OperatingSystem::Linux => "-shared",
398+
OperatingSystem::Linux | OperatingSystem::Freebsd |
399+
OperatingSystem::Dragonfly | OperatingSystem::Netbsd |
400+
OperatingSystem::Openbsd => "-shared",
399401
OperatingSystem::Darwin | OperatingSystem::MacOSX { .. } => {
400402
"-dylib -dead_strip -export_dynamic -undefined dynamic_lookup"
401403
}

0 commit comments

Comments
 (0)