Leverage root_module.linkSystemLibrary()

This commit is contained in:
Frank Denis 2025-01-15 21:03:56 +01:00
parent 285b53d52c
commit a1c07cc277

View file

@ -11,10 +11,10 @@ pub fn build(b: *std.Build) !void {
.strip = true, .strip = true,
}); });
minisign.linkLibC(); minisign.linkLibC();
minisign.addLibraryPath(.{ .cwd_relative = "/opt/homebrew/lib" }); minisign.root_module.linkSystemLibrary(
minisign.addLibraryPath(.{ .cwd_relative = "/usr/local/lib" }); "sodium",
minisign.linkSystemLibrary("sodium"); .{ .use_pkg_config = .yes },
);
minisign.addIncludePath(b.path("src")); minisign.addIncludePath(b.path("src"));
minisign.addSystemIncludePath(.{ .cwd_relative = "/opt/homebrew/include" }); minisign.addSystemIncludePath(.{ .cwd_relative = "/opt/homebrew/include" });
minisign.addSystemIncludePath(.{ .cwd_relative = "/usr/local/include" }); minisign.addSystemIncludePath(.{ .cwd_relative = "/usr/local/include" });