mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
macho linking: always -dynamic for non-static-libs
This commit is contained in:
parent
862ac42a6e
commit
e861da03f9
@ -1436,7 +1436,7 @@ static void construct_linker_job_macho(LinkJob *lj) {
|
||||
|
||||
bool is_lib = g->out_type == OutTypeLib;
|
||||
bool is_dyn_lib = g->is_dynamic && is_lib;
|
||||
if (!g->is_dynamic) {
|
||||
if (is_lib && !g->is_dynamic) {
|
||||
lj->args.append("-static");
|
||||
} else {
|
||||
lj->args.append("-dynamic");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user