mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
stage1: Link pthread on NetBSD
This commit is contained in:
parent
bab66235b9
commit
2f21c8f5ba
@ -1799,7 +1799,9 @@ static void construct_linker_job_elf(LinkJob *lj) {
|
||||
lj->args.append("-lm");
|
||||
}
|
||||
|
||||
if (g->zig_target->os == OsFreeBSD) {
|
||||
if (g->zig_target->os == OsFreeBSD ||
|
||||
g->zig_target->os == OsNetBSD)
|
||||
{
|
||||
lj->args.append("-lpthread");
|
||||
}
|
||||
} else if (target_is_glibc(g->zig_target)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user