Make libc depend on crt{0,i,n}.o
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
71414c0653
commit
7acef24494
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user