Make libc depend on crt{0,i,n}.o
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
apio 2023-01-06 14:32:38 +01:00
parent 71414c0653
commit 7acef24494
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -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 $<TARGET_OBJECTS:crtn> ${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(