mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
bsd: fix stage3 linking on freebsd and dragonfly
This commit is contained in:
parent
3f95003d4c
commit
80a9f0b942
@ -324,7 +324,7 @@ pub fn libcFullLinkFlags(target: std.Target) []const []const u8 {
|
||||
// The linking order of these is significant and should match the order other
|
||||
// c compilers such as gcc or clang use.
|
||||
const result: []const []const u8 = switch (target.os.tag) {
|
||||
.netbsd, .openbsd => &.{ "-lm", "-lpthread", "-lc", "-lutil" },
|
||||
.dragonfly, .freebsd, .netbsd, .openbsd => &.{ "-lm", "-lpthread", "-lc", "-lutil" },
|
||||
// Solaris releases after 10 merged the threading libraries into libc.
|
||||
.solaris, .illumos => &.{ "-lm", "-lsocket", "-lnsl", "-lc" },
|
||||
.haiku => &.{ "-lm", "-lroot", "-lpthread", "-lc", "-lnetwork" },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user