authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-03-08 13:52:51+01:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-03-23 18:47:39+01:00
log2f21c8f5ba2e73c1a674b481fd2a8ce87726c14c
tree2916ac6dbcd4a3e9c2d30921b52fffc9af3d7cc4
parentbab66235b94643e10dfc58db38c8ea4b8be46c37

stage1: Link pthread on NetBSD


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

src/link.cpp+3-1
...@@ -1799,7 +1799,9 @@ static void construct_linker_job_elf(LinkJob *lj) {...@@ -1799,7 +1799,9 @@ static void construct_linker_job_elf(LinkJob *lj) {
1799 lj->args.append("-lm");1799 lj->args.append("-lm");
1800 }1800 }
18011801
1802 if (g->zig_target->os == OsFreeBSD) {1802 if (g->zig_target->os == OsFreeBSD ||
1803 g->zig_target->os == OsNetBSD)
1804 {
1803 lj->args.append("-lpthread");1805 lj->args.append("-lpthread");
1804 }1806 }
1805 } else if (target_is_glibc(g->zig_target)) {1807 } else if (target_is_glibc(g->zig_target)) {