From 7a87ff64e1fe970adcc41b7fc664fb5fd8410a68 Mon Sep 17 00:00:00 2001 From: Schrodinger ZHU Yifan Date: Wed, 20 Dec 2023 12:42:35 -0500 Subject: [libc] suppress stdlib explicitly for crt1.a (#76079) [nd: updated oneline] --- libc/startup/linux/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/startup') diff --git a/libc/startup/linux/CMakeLists.txt b/libc/startup/linux/CMakeLists.txt index d81c7db..2d55a36 100644 --- a/libc/startup/linux/CMakeLists.txt +++ b/libc/startup/linux/CMakeLists.txt @@ -26,7 +26,7 @@ function(merge_relocatable_object name) ) # Pass -r to the driver is much cleaner than passing -Wl,-r: the compiler knows it is # a relocatable linking and will not pass other irrelevant flags to the linker. - target_link_options(${relocatable_target} PRIVATE -r) + target_link_options(${relocatable_target} PRIVATE -r -nostdlib) set_target_properties( ${relocatable_target} PROPERTIES -- cgit v1.1