From 0be6c041bfe78dec48fd70b61245b81fb8a5ead8 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Mon, 26 Jul 2021 01:09:19 -0700 Subject: [PATCH] glfw: always linkLibC Signed-off-by: Stephen Gutekanst --- glfw/build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/build.zig b/glfw/build.zig index 6e149ec4..39f25e2b 100644 --- a/glfw/build.zig +++ b/glfw/build.zig @@ -171,10 +171,10 @@ fn linkGLFW(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void defer b.allocator.free(include_dir); step.addIncludeDir(include_dir); + step.linkLibC(); const target = (std.zig.system.NativeTargetInfo.detect(b.allocator, step.target) catch unreachable).target; switch (target.os.tag) { .windows => { - step.linkSystemLibrary("c"); step.linkSystemLibrary("gdi32"); if (options.opengl) { step.linkFramework("opengl32");