From b82217eaaaabd4540a595958970b78f08cd62844 Mon Sep 17 00:00:00 2001 From: yujiri8 Date: Sun, 6 Aug 2023 03:25:37 -0400 Subject: [PATCH] Tweak build.zig to work with cross-compiling (#3225) --- src/build.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/build.zig b/src/build.zig index 28a5d727d25b..9aab4812a536 100644 --- a/src/build.zig +++ b/src/build.zig @@ -59,6 +59,7 @@ pub fn addRaylib(b: *std.Build, target: std.zig.CrossTarget, optimize: std.built raylib.linkSystemLibrary("dl"); raylib.linkSystemLibrary("m"); raylib.linkSystemLibrary("X11"); + raylib.addLibraryPath(.{ .path = "/usr/lib" }); raylib.addIncludePath(.{ .path = "/usr/include" }); raylib.defineCMacro("PLATFORM_DESKTOP", null);