mirror of
https://github.com/jedisct1/minisign.git
synced 2025-04-03 19:07:41 +03:00
Leverage root_module.linkSystemLibrary()
This commit is contained in:
parent
285b53d52c
commit
a1c07cc277
1 changed files with 4 additions and 4 deletions
|
@ -11,10 +11,10 @@ pub fn build(b: *std.Build) !void {
|
|||
.strip = true,
|
||||
});
|
||||
minisign.linkLibC();
|
||||
minisign.addLibraryPath(.{ .cwd_relative = "/opt/homebrew/lib" });
|
||||
minisign.addLibraryPath(.{ .cwd_relative = "/usr/local/lib" });
|
||||
minisign.linkSystemLibrary("sodium");
|
||||
|
||||
minisign.root_module.linkSystemLibrary(
|
||||
"sodium",
|
||||
.{ .use_pkg_config = .yes },
|
||||
);
|
||||
minisign.addIncludePath(b.path("src"));
|
||||
minisign.addSystemIncludePath(.{ .cwd_relative = "/opt/homebrew/include" });
|
||||
minisign.addSystemIncludePath(.{ .cwd_relative = "/usr/local/include" });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue