From dea7e313057ff8f43e9234819979fe4b8f270e3b Mon Sep 17 00:00:00 2001 From: Evin Yulo Date: Tue, 30 May 2023 11:30:07 -0400 Subject: [PATCH] build.zig: Fix cross-compiling from Linux --- src/build.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/build.zig b/src/build.zig index 48e93c32655d..59d8241e7b9f 100644 --- a/src/build.zig +++ b/src/build.zig @@ -45,6 +45,7 @@ pub fn addRaylib(b: *std.Build, target: std.zig.CrossTarget, optimize: std.built raylib.linkSystemLibrary("dl"); raylib.linkSystemLibrary("m"); raylib.linkSystemLibrary("X11"); + raylib.addIncludePath("/usr/include"); raylib.defineCMacro("PLATFORM_DESKTOP", null); },