zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit e861da03f9b9d1261cf32872ea942ee7a63812d3 (tree)
parent 862ac42a6e1414d3109ec309d36000a8f22821eb
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Thu, 14 Mar 2019 00:07:05 -0400

macho linking: always -dynamic for non-static-libs

Diffstat:
Msrc/link.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/link.cpp b/src/link.cpp @@ -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");