From bf9a15a76aa54473ba14586124b30f8a5e636b13 Mon Sep 17 00:00:00 2001 From: utox39 Date: Thu, 6 Mar 2025 14:45:58 +0100 Subject: [PATCH] build: link libc for linux --- build.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.zig b/build.zig index 1081a4d..604a590 100644 --- a/build.zig +++ b/build.zig @@ -41,6 +41,10 @@ pub fn build(b: *std.Build) void { exe.linkFramework("IOKit"); } + if (target.result.os.tag == .linux) { + exe.linkLibC(); + } + // This declares intent for the executable to be installed into the // standard location when the user invokes the "install" step (the default // step when running `zig build`).