aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorstratact <stratact@stratacter.com>2019-09-10 11:50:54 -0700
committerAndrew Kelley <andrew@ziglang.org>2019-09-10 14:50:54 -0400
commita165cc05359114dc20af90232184a1af75dc9795 (patch)
tree0e8c6a43c5674135de924bd3a8e6525958aefefe /src/link.cpp
parent68d159ea9de5b9f59ad2e658017c45a33698a008 (diff)
downloadzig-a165cc05359114dc20af90232184a1af75dc9795.tar.gz
zig-a165cc05359114dc20af90232184a1af75dc9795.zip
Get more of the tests passing for FreeBSD (#3197)
* Add missing <stdint.h> include for uint8_t type declaration * Add needed FreeBSD check to link to libpthread * Apply patch to enable more tests in the FreeBSD CI
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp4
1 files changed, 4 insertions, 0 deletions
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));