Skip to content

Commit a959e98

Browse files
committed
target requiring PIC does not imply dynamic linking
Related: #3237
1 parent 4b91e4c commit a959e98

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/codegen.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -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);

0 commit comments

Comments
 (0)