Skip to content

Commit 7a87ff6

Browse files
[libc] suppress stdlib explicitly for crt1.a (#76079)
[nd: updated oneline]
1 parent 18170d0 commit 7a87ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/startup/linux/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function(merge_relocatable_object name)
2626
)
2727
# Pass -r to the driver is much cleaner than passing -Wl,-r: the compiler knows it is
2828
# a relocatable linking and will not pass other irrelevant flags to the linker.
29-
target_link_options(${relocatable_target} PRIVATE -r)
29+
target_link_options(${relocatable_target} PRIVATE -r -nostdlib)
3030
set_target_properties(
3131
${relocatable_target}
3232
PROPERTIES

0 commit comments

Comments
 (0)