commit 39adc228d8ad4d8b2d9d440f80dc0c9e80fcbc97 (tree)
parent 2e1fc0dd14c2897cd6fb4ff433bff2e5297272cb
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Thu, 9 May 2024 16:20:18 +0200
link/macho: look in lib dirs (-L) for libSystem too
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/link/MachO.zig b/src/link/MachO.zig
@@ -891,6 +891,10 @@ pub fn resolveLibSystem(
},
};
+ for (self.lib_dirs) |dir| {
+ if (try accessLibPath(arena, &test_path, &checked_paths, dir, "System")) break :success;
+ }
+
try self.reportMissingLibraryError(checked_paths.items, "unable to find libSystem system library", .{});
return error.MissingLibSystem;
}