authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2025-01-09 22:48:09-05:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-01-10 09:38:31+01:00
log80a9f0b9426e235d602136cb9bedf0177edc0c7d
tree867bfb5a7e2dcf68702969d926cb613865c626ab
parent3f95003d4c57650f9b4779f55c8d7368b137337c

bsd: fix stage3 linking on freebsd and dragonfly


1 files changed, 1 insertions(+), 1 deletions(-)

src/target.zig+1-1
...@@ -324,7 +324,7 @@ pub fn libcFullLinkFlags(target: std.Target) []const []const u8 {...@@ -324,7 +324,7 @@ pub fn libcFullLinkFlags(target: std.Target) []const []const u8 {
324 // The linking order of these is significant and should match the order other324 // The linking order of these is significant and should match the order other
325 // c compilers such as gcc or clang use.325 // c compilers such as gcc or clang use.
326 const result: []const []const u8 = switch (target.os.tag) {326 const result: []const []const u8 = switch (target.os.tag) {
327 .netbsd, .openbsd => &.{ "-lm", "-lpthread", "-lc", "-lutil" },327 .dragonfly, .freebsd, .netbsd, .openbsd => &.{ "-lm", "-lpthread", "-lc", "-lutil" },
328 // Solaris releases after 10 merged the threading libraries into libc.328 // Solaris releases after 10 merged the threading libraries into libc.
329 .solaris, .illumos => &.{ "-lm", "-lsocket", "-lnsl", "-lc" },329 .solaris, .illumos => &.{ "-lm", "-lsocket", "-lnsl", "-lc" },
330 .haiku => &.{ "-lm", "-lroot", "-lpthread", "-lc", "-lnetwork" },330 .haiku => &.{ "-lm", "-lroot", "-lpthread", "-lc", "-lnetwork" },