aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 225e39989c..b959d03549 100644
--- 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);