authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-17 19:49:19-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-17 19:49:19-05:00
log99520c4e6936b69e7489262bc35a70300366d395
tree0b7636cd90657be10b8e023c90e52164861c2110
parent5a4e8c779a713d7b07cec262b07afd6883684c98
signaturelock-open Commit is signed but in an unrecognized format.

target_os_requires_libc implies dynamic linking


1 files changed, 2 insertions(+), 0 deletions(-)

src/codegen.cpp+2
...@@ -8375,6 +8375,8 @@ static bool detect_dynamic_link(CodeGen *g) {...@@ -8375,6 +8375,8 @@ static bool detect_dynamic_link(CodeGen *g) {
8375 return true;8375 return true;
8376 if (g->zig_target->os == OsFreestanding)8376 if (g->zig_target->os == OsFreestanding)
8377 return false;8377 return false;
8378 if (target_os_requires_libc(g->zig_target->os))
8379 return true;
8378 if (g->libc_link_lib != nullptr && target_is_glibc(g->zig_target))8380 if (g->libc_link_lib != nullptr && target_is_glibc(g->zig_target))
8379 return true;8381 return true;
8380 // If there are no dynamic libraries then we can disable dynamic linking.8382 // If there are no dynamic libraries then we can disable dynamic linking.