mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 09:03:12 +00:00
std.build: fix -install_name for darwin dynamic C linking
This commit is contained in:
parent
eb0867d3f0
commit
2f98676bbe
@ -1306,8 +1306,9 @@ pub const LibExeObjStep = struct {
|
||||
%%cc_args.append("-current_version");
|
||||
%%cc_args.append(builder.fmt("{}.{}.{}", self.version.major, self.version.minor, self.version.patch));
|
||||
|
||||
const install_name = builder.pathFromRoot(%%os.path.join(builder.allocator, builder.cache_root, self.major_only_filename));
|
||||
%%cc_args.append("-install_name");
|
||||
%%cc_args.append(builder.pathFromRoot(self.major_only_filename));
|
||||
%%cc_args.append(install_name);
|
||||
} else {
|
||||
%%cc_args.append("-fPIC");
|
||||
%%cc_args.append("-shared");
|
||||
|
Loading…
Reference in New Issue
Block a user