diff options
author | Schrodinger ZHU Yifan <yifanzhu@rochester.edu> | 2023-12-20 12:42:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 09:42:35 -0800 |
commit | 7a87ff64e1fe970adcc41b7fc664fb5fd8410a68 (patch) | |
tree | d767867c03ae79a66391b8a02ffa21e5026f1872 /libc | |
parent | 18170d0f281c2cae5252c501cbcd174783de78b7 (diff) | |
download | llvm-7a87ff64e1fe970adcc41b7fc664fb5fd8410a68.zip llvm-7a87ff64e1fe970adcc41b7fc664fb5fd8410a68.tar.gz llvm-7a87ff64e1fe970adcc41b7fc664fb5fd8410a68.tar.bz2 |
[libc] suppress stdlib explicitly for crt1.a (#76079)
[nd: updated oneline]
Diffstat (limited to 'libc')
-rw-r--r-- | libc/startup/linux/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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 |