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

This commit is contained in:
Joseph Huber 2024-07-26 09:09:51 -05:00
parent 7e049373f4
commit d3ecb16e85

View File

@ -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()