mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
don't resolve dynamic linker for static executables
This commit is contained in:
parent
9741b2aab4
commit
cf699ee068
1 changed files with 1 additions and 1 deletions
|
|
@ -7893,7 +7893,7 @@ static void init(CodeGen *g) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void detect_dynamic_linker(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;
|
return;
|
||||||
const char *standard_ld_path = target_dynamic_linker(g->zig_target);
|
const char *standard_ld_path = target_dynamic_linker(g->zig_target);
|
||||||
if (standard_ld_path == nullptr)
|
if (standard_ld_path == nullptr)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue