Skip to content

Commit d3ecb16

Browse files
committed
[libc] Fix relocatable link attempting to pull in standard libs
1 parent 7e04937 commit d3ecb16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/startup/gpu/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function(add_startup_object name)
3434
RUNTIME_OUTPUT_DIRECTORY ${LIBC_LIBRARY_DIR}
3535
RUNTIME_OUTPUT_NAME ${name}.o)
3636
target_link_options(${fq_target_name}.exe PRIVATE
37-
"-flto" "-Wl,--lto-emit-llvm" "-march= ")
37+
"-nostdlib" "-flto" "-Wl,--lto-emit-llvm" "-march= ")
3838
endif()
3939
endfunction()
4040

0 commit comments

Comments
 (0)