From 41306e3e42400321944b4119c49c219f44ea07ff Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 29 Jan 2025 18:28:41 +0100 Subject: [PATCH] No need to set headerpad_max_install_names when linking statically --- build.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index b8898bc..ecefe62 100644 --- a/build.zig +++ b/build.zig @@ -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", .{