From 3a5d6914baff1021b19d572c882d6b6866065a6d Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 2 Jun 2023 18:42:25 +0300 Subject: [PATCH] Userspace: create_program creates proper cmake files again --- userspace/create_program.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/userspace/create_program.sh b/userspace/create_program.sh index 7efa30d0..0abd03f8 100755 --- a/userspace/create_program.sh +++ b/userspace/create_program.sh @@ -17,9 +17,7 @@ set(SOURCES add_executable($PROGRAM_NAME \${SOURCES}) target_compile_options($PROGRAM_NAME PUBLIC -O2 -g) -add_dependencies($PROGRAM_NAME libc-install) -target_link_options($PROGRAM_NAME PUBLIC -nodefaultlibs) -target_link_libraries($PROGRAM_NAME PUBLIC \${BANAN_LIB}/libc.a) +target_link_libraries($PROGRAM_NAME PUBLIC libc) add_custom_target($PROGRAM_NAME-install COMMAND cp \${CMAKE_CURRENT_BINARY_DIR}/$PROGRAM_NAME \${BANAN_BIN}/