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
signature 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) {
83758375 return true;
83768376 if (g->zig_target->os == OsFreestanding)
83778377 return false;
8378 if (target_requires_pic(g->zig_target, g->libc_link_lib != nullptr))
8379 return true;
83808378 // If there are no dynamic libraries then we can disable PIC
83818379 for (size_t i = 0; i < g->link_libs_list.length; i += 1) {
83828380 LinkLib *link_lib = g->link_libs_list.at(i);