Skip to content

Commit

Permalink
bsd: fix stage3 linking on freebsd and dragonfly
Browse files Browse the repository at this point in the history
  • Loading branch information
mikdusan authored and alexrp committed Jan 10, 2025
1 parent 3f95003 commit 80a9f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down

0 comments on commit 80a9f0b

Please sign in to comment.