diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt index 3ac4b29d..00e9e281 100644 --- a/libc/CMakeLists.txt +++ b/libc/CMakeLists.txt @@ -28,7 +28,7 @@ add_custom_command( add_library(crtn STATIC src/arch/${ARCH}/crtn.S) add_custom_command( - TARGET crt0 + TARGET crtn COMMAND "${CMAKE_COMMAND}" -E copy $ ${LUNA_BASE}/usr/lib/crtn.o ) @@ -50,7 +50,7 @@ add_custom_target(libc COMMAND ${CMAKE_AR} -rcs ${CMAKE_CURRENT_BINARY_DIR}/libc.a *.o COMMAND rm *.o WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} - DEPENDS bare_libc luna + DEPENDS bare_libc luna crti crtn crt0 ) add_custom_command(