aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-03-12 18:28:32 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-03-12 18:28:32 -0400
commitcf699ee068c2b1159ebb23b96999f7f828c0ec1f (patch)
treeabc94b129729e0a16fe69e2afbd2c3394eaa4408 /src/codegen.cpp
parent9741b2aab47ec899276a52827f72509fc322388a (diff)
downloadzig-cf699ee068c2b1159ebb23b96999f7f828c0ec1f.tar.gz
zig-cf699ee068c2b1159ebb23b96999f7f828c0ec1f.zip
don't resolve dynamic linker for static executables
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index b1b9e46036..22f3b5be09 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)