build: fix mach-o relocation (#155)

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen 2025-01-29 12:27:25 -05:00 committed by GitHub
parent c684406e21
commit b5cf334b42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,6 +14,10 @@ pub fn build(b: *std.Build) !void {
.optimize = optimize,
.strip = true,
});
// fix Mach-O relocation
minisign.headerpad_max_install_names = true;
minisign.linkLibC();
if (use_libzodium) {
var libzodium = lib: {