glfw: always linkLibC
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
72972b8725
commit
0be6c041bf
1 changed files with 1 additions and 1 deletions
|
|
@ -171,10 +171,10 @@ fn linkGLFW(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void
|
||||||
defer b.allocator.free(include_dir);
|
defer b.allocator.free(include_dir);
|
||||||
step.addIncludeDir(include_dir);
|
step.addIncludeDir(include_dir);
|
||||||
|
|
||||||
|
step.linkLibC();
|
||||||
const target = (std.zig.system.NativeTargetInfo.detect(b.allocator, step.target) catch unreachable).target;
|
const target = (std.zig.system.NativeTargetInfo.detect(b.allocator, step.target) catch unreachable).target;
|
||||||
switch (target.os.tag) {
|
switch (target.os.tag) {
|
||||||
.windows => {
|
.windows => {
|
||||||
step.linkSystemLibrary("c");
|
|
||||||
step.linkSystemLibrary("gdi32");
|
step.linkSystemLibrary("gdi32");
|
||||||
if (options.opengl) {
|
if (options.opengl) {
|
||||||
step.linkFramework("opengl32");
|
step.linkFramework("opengl32");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue