From 7acef24494766bf79da5f1395dc71516309c7e97 Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 6 Jan 2023 14:32:38 +0100 Subject: [PATCH] Make libc depend on crt{0,i,n}.o --- libc/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(