From cf699ee068c2b1159ebb23b96999f7f828c0ec1f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 12 Mar 2019 18:28:32 -0400 Subject: [PATCH] don't resolve dynamic linker for static executables --- src/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.cpp b/src/codegen.cpp index b1b9e4603..22f3b5be0 100644 --- 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)