[libc-commits] [libc] d3ecb16 - [libc] Fix relocatable link attempting to pull in standard libs

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Fri Jul 26 07:10:14 PDT 2024


Author: Joseph Huber
Date: 2024-07-26T09:10:06-05:00
New Revision: d3ecb16e852d81628d82110402ec0a18d6c6b2ac

URL: https://github.com/llvm/llvm-project/commit/d3ecb16e852d81628d82110402ec0a18d6c6b2ac
DIFF: https://github.com/llvm/llvm-project/commit/d3ecb16e852d81628d82110402ec0a18d6c6b2ac.diff

LOG: [libc] Fix relocatable link attempting to pull in standard libs

Added: 
    

Modified: 
    libc/startup/gpu/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/startup/gpu/CMakeLists.txt b/libc/startup/gpu/CMakeLists.txt
index 701ea63e1e2d5..3830bf39916af 100644
--- a/libc/startup/gpu/CMakeLists.txt
+++ b/libc/startup/gpu/CMakeLists.txt
@@ -34,7 +34,7 @@ function(add_startup_object name)
       RUNTIME_OUTPUT_DIRECTORY ${LIBC_LIBRARY_DIR}
       RUNTIME_OUTPUT_NAME ${name}.o)
     target_link_options(${fq_target_name}.exe PRIVATE
-                        "-flto" "-Wl,--lto-emit-llvm" "-march= ")
+                        "-nostdlib" "-flto" "-Wl,--lto-emit-llvm" "-march= ")
   endif()
 endfunction()
 


        


More information about the libc-commits mailing list