zig

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

commit cf699ee068c2b1159ebb23b96999f7f828c0ec1f (tree)
parent 9741b2aab47ec899276a52827f72509fc322388a
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Tue, 12 Mar 2019 18:28:32 -0400

don't resolve dynamic linker for static executables

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

diff --git a/src/codegen.cpp b/src/codegen.cpp @@ -7893,7 +7893,7 @@ static void init(CodeGen *g) { } static void detect_dynamic_linker(CodeGen *g) { - if (g->dynamic_linker_path != nullptr) + if (g->dynamic_linker_path != nullptr || g->is_static) return; const char *standard_ld_path = target_dynamic_linker(g->zig_target); if (standard_ld_path == nullptr)