commit a959e98273110fb656a96b1ce22ef400fdcc3c0e (tree)
parent 4b91e4c91fae760f30becbafaf28befef832ecf5
Author: Andrew Kelley <andrew@ziglang.org>
Date: Mon, 17 Feb 2020 16:16:58 -0500
target requiring PIC does not imply dynamic linking
Related: #3237
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/codegen.cpp b/src/codegen.cpp
@@ -8375,8 +8375,6 @@ static bool detect_dynamic_link(CodeGen *g) {
return true;
if (g->zig_target->os == OsFreestanding)
return false;
- if (target_requires_pic(g->zig_target, g->libc_link_lib != nullptr))
- return true;
// If there are no dynamic libraries then we can disable PIC
for (size_t i = 0; i < g->link_libs_list.length; i += 1) {
LinkLib *link_lib = g->link_libs_list.at(i);