From 14982c137ada5d3a0bd214c36fccb565aa2e0358 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 31 May 2023 22:36:47 +0300 Subject: [PATCH] Userspace: make test program link against libc on change --- userspace/test/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/userspace/test/CMakeLists.txt b/userspace/test/CMakeLists.txt index 88a242fb..6a2ce163 100644 --- a/userspace/test/CMakeLists.txt +++ b/userspace/test/CMakeLists.txt @@ -9,7 +9,8 @@ set(TEST_SOURCES add_executable(test ${TEST_SOURCES}) target_compile_options(test PUBLIC -O2 -g) add_dependencies(test libc-install) -target_link_options(test PUBLIC -nodefaultlibs -lc) +target_link_options(test PUBLIC -nodefaultlibs) +target_link_libraries(test PUBLIC ${BANAN_LIB}/libc.a) add_custom_target(test-install COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/test ${BANAN_BIN}/