From 6f58e86f29b85e1026fcfaa77409e79dc4f42a19 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Sun, 18 Feb 2024 17:29:17 +0100 Subject: [PATCH] Statically link raylib --- build.zig | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/build.zig b/build.zig index d20f765..445d565 100644 --- a/build.zig +++ b/build.zig @@ -25,13 +25,16 @@ pub fn build(b: *std.Build) void { }); // Link Raylib - exe.addLibraryPath(.{ - .cwd_relative = "/opt/homebrew/Cellar/raylib/5.0/lib", - }); - exe.linkSystemLibrary("raylib"); + // exe.addLibraryPath(.{ + // .cwd_relative = "/opt/homebrew/Cellar/raylib/5.0/lib", + // }); + // exe.linkSystemLibrary("raylib"); exe.linkSystemLibrary("curl"); + exe.addObjectFile(.{ + .cwd_relative = "/opt/homebrew/Cellar/raylib/5.0/lib/libraylib.a", + }); // exe.addObjectFile(.{ - // .cwd_relative = "/opt/homebrew/Cellar/raylib/5.0/lib/libraylib.a", + // .cwd_relative = "/opt/homebrew/Cellar/curl/8.5.0/lib/libcurl.a", // }); exe.addIncludePath(.{ .cwd_relative = "/opt/homebrew/Cellar/raylib/5.0/include",