aboutsummaryrefslogtreecommitdiff
path: root/src/target.zig
diff options
context:
space:
mode:
authorAl Hoang <3811822-hoanga@users.noreply.gitlab.com>2021-05-22 01:05:18 -0500
committerAndrew Kelley <andrew@ziglang.org>2021-05-24 10:39:01 -0700
commitc4a4330cc7a783ad188daedd05159b725128f69c (patch)
tree076a343390430fcfc78217dd97c37f3056f839d0 /src/target.zig
parent2be2c983cb17bd24e0f876f9e363f8342765273c (diff)
downloadzig-c4a4330cc7a783ad188daedd05159b725128f69c.tar.gz
zig-c4a4330cc7a783ad188daedd05159b725128f69c.zip
haiku case for libc link flags
Diffstat (limited to 'src/target.zig')
-rw-r--r--src/target.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/target.zig b/src/target.zig
index b4e6123819..59be06f296 100644
--- a/src/target.zig
+++ b/src/target.zig
@@ -366,6 +366,12 @@ pub fn libcFullLinkFlags(target: std.Target) []const []const u8 {
"-lc",
"-lutil",
},
+ .haiku => &[_][]const u8{
+ "-lm",
+ "-lroot",
+ "-lpthread",
+ "-lc",
+ },
else => switch (target.abi) {
.android => &[_][]const u8{
"-lm",