Link X11 instead of x11

This seems to cause trouble sometimes, not sure why. The library file has a capital X, so I guess somehow there was any alias on my PC.
fixes #1148
fixes #1040
This commit is contained in:
IntegratedQuantum 2025-03-06 15:16:35 +01:00
parent 8a86b8f0c7
commit a033913dbb

View File

@ -62,7 +62,7 @@ pub fn build(b: *std.Build) !void {
exe.linkSystemLibrary("ws2_32");
} else if(t.os.tag == .linux) {
exe.linkSystemLibrary("asound");
exe.linkSystemLibrary("x11");
exe.linkSystemLibrary("X11");
exe.linkSystemLibrary("GL");
} else if(t.os.tag == .macos) {
exe.linkFramework("AudioUnit");