build: link libc for linux

This commit is contained in:
utox39
2025-03-06 14:45:58 +01:00
parent 0e9474ee8f
commit bf9a15a76a

View File

@@ -41,6 +41,10 @@ pub fn build(b: *std.Build) void {
exe.linkFramework("IOKit"); exe.linkFramework("IOKit");
} }
if (target.result.os.tag == .linux) {
exe.linkLibC();
}
// This declares intent for the executable to be installed into the // This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default // standard location when the user invokes the "install" step (the default
// step when running `zig build`). // step when running `zig build`).