Skip to content

Commit bf4fda4

Browse files
committed
target: Add libc link flags for serenity
1 parent 26bd74e commit bf4fda4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/target.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,8 @@ pub fn libcFullLinkFlags(target: *const std.Target) []const []const u8 {
414414
.android, .androideabi, .ohos, .ohoseabi => &.{ "-lm", "-lc", "-ldl" },
415415
else => &.{ "-lm", "-lpthread", "-lc", "-ldl", "-lrt", "-lutil" },
416416
},
417+
// On SerenityOS libc includes libm, libpthread, libdl, and libssp.
418+
.serenity => &.{"-lc"},
417419
else => &.{},
418420
};
419421
return result;

0 commit comments

Comments
 (0)