static link

This commit is contained in:
David Allemang
2024-07-03 13:13:19 -04:00
parent d6fb485601
commit 1c54bdb1ad
2 changed files with 1 additions and 4 deletions

View File

@@ -30,8 +30,6 @@ pub fn build(b: *std.Build) void {
shaders.add("triangle_frag", "src/shaders/triangle.frag", .{});
exe.root_module.addImport("shaders", shaders.getModule());
// this requires PKG_CONFIG_PATH to be set. something like:
// ~/.local/lib/pkgconfig/
exe.linkSystemLibrary2("glfw3", .{
.needed = true,
.preferred_link_mode = .static,