No need to set headerpad_max_install_names when linking statically

This commit is contained in:
Frank Denis 2025-01-29 18:28:41 +01:00
parent 090cc4752c
commit 41306e3e42

View file

@ -65,7 +65,9 @@ pub fn build(b: *std.Build) !void {
std.fs.accessAbsolute(path, .{}) catch continue;
minisign.addLibraryPath(.{ .cwd_relative = path });
}
minisign.headerpad_max_install_names = true; // required to compile using Homebrew, see https://github.com/jedisct1/minisign/pull/155
if (!use_static_linking) {
minisign.headerpad_max_install_names = true; // required to compile using Homebrew, see https://github.com/jedisct1/minisign/pull/155
}
minisign.root_module.linkSystemLibrary(
"sodium",
.{