commit bf4fda4db6bd442580725b0d533e26f781763623 (tree)
parent 26bd74e87f97262f4f7ceaa5a383851d5e0878e0
Author: Linus Groh <mail@linusgroh.de>
Date: Thu, 24 Jul 2025 00:26:05 +0100
target: Add libc link flags for serenity
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/target.zig b/src/target.zig
@@ -414,6 +414,8 @@ pub fn libcFullLinkFlags(target: *const std.Target) []const []const u8 {
.android, .androideabi, .ohos, .ohoseabi => &.{ "-lm", "-lc", "-ldl" },
else => &.{ "-lm", "-lpthread", "-lc", "-ldl", "-lrt", "-lutil" },
},
+ // On SerenityOS libc includes libm, libpthread, libdl, and libssp.
+ .serenity => &.{"-lc"},
else => &.{},
};
return result;