authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-17 16:16:58-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-17 16:16:58-05:00
loga959e98273110fb656a96b1ce22ef400fdcc3c0e
treeba9320f5d3f7ab1dc38b7f6de8b32435022efbf1
parent4b91e4c91fae760f30becbafaf28befef832ecf5
signaturelock-open Commit is signed but in an unrecognized format.

target requiring PIC does not imply dynamic linking

Related: #3237

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

src/codegen.cpp-2
...@@ -8375,8 +8375,6 @@ static bool detect_dynamic_link(CodeGen *g) {...@@ -8375,8 +8375,6 @@ 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_requires_pic(g->zig_target, g->libc_link_lib != nullptr))
8379 return true;
8380 // If there are no dynamic libraries then we can disable PIC8378 // If there are no dynamic libraries then we can disable PIC
8381 for (size_t i = 0; i < g->link_libs_list.length; i += 1) {8379 for (size_t i = 0; i < g->link_libs_list.length; i += 1) {
8382 LinkLib *link_lib = g->link_libs_list.at(i);8380 LinkLib *link_lib = g->link_libs_list.at(i);