Commit cf699ee068

Andrew Kelley <andrew@ziglang.org>
2019-03-12 23:28:32
don't resolve dynamic linker for static executables
1 parent 9741b2a
Changed files (1)
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)