| ... | @@ -7893,7 +7893,7 @@ static void init(CodeGen *g) { | ... | @@ -7893,7 +7893,7 @@ static void init(CodeGen *g) { |
| 7893 | } | 7893 | } |
| 7894 | | 7894 | |
| 7895 | static void detect_dynamic_linker(CodeGen *g) { | 7895 | static void detect_dynamic_linker(CodeGen *g) { |
| 7896 | if (g->dynamic_linker_path != nullptr) | 7896 | if (g->dynamic_linker_path != nullptr || g->is_static) |
| 7897 | return; | 7897 | return; |
| 7898 | const char *standard_ld_path = target_dynamic_linker(g->zig_target); | 7898 | const char *standard_ld_path = target_dynamic_linker(g->zig_target); |
| 7899 | if (standard_ld_path == nullptr) | 7899 | if (standard_ld_path == nullptr) |