From a165cc05359114dc20af90232184a1af75dc9795 Mon Sep 17 00:00:00 2001 From: stratact Date: Tue, 10 Sep 2019 11:50:54 -0700 Subject: Get more of the tests passing for FreeBSD (#3197) * Add missing include for uint8_t type declaration * Add needed FreeBSD check to link to libpthread * Apply patch to enable more tests in the FreeBSD CI --- src/link.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/link.cpp') diff --git a/src/link.cpp b/src/link.cpp index 5519f98fd2..1130481dce 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -1774,6 +1774,10 @@ static void construct_linker_job_elf(LinkJob *lj) { lj->args.append("-lgcc_s"); lj->args.append("--no-as-needed"); } + + if (g->zig_target->os == OsFreeBSD) { + lj->args.append("-lpthread"); + } } else if (target_is_glibc(g->zig_target)) { if (target_supports_libunwind(g->zig_target)) { lj->args.append(build_libunwind(g)); -- cgit v1.2.3