diff --git a/userspace/libraries/LibC/CMakeLists.txt b/userspace/libraries/LibC/CMakeLists.txt index f0ce183f..9cacaaf1 100644 --- a/userspace/libraries/LibC/CMakeLists.txt +++ b/userspace/libraries/LibC/CMakeLists.txt @@ -72,16 +72,19 @@ banan_include_headers(objlibc kernel) banan_install_headers(objlibc) -add_library(libc STATIC $) +add_library(libc-static STATIC $) add_library(libc-shared SHARED $) -target_link_options(libc PRIVATE -nolibc) +target_link_options(libc-static PRIVATE -nolibc) target_link_options(libc-shared PRIVATE -nolibc) -install(TARGETS libc OPTIONAL) +install(TARGETS libc-static OPTIONAL) install(TARGETS libc-shared OPTIONAL) +set_target_properties(libc-static PROPERTIES OUTPUT_NAME libc) set_target_properties(libc-shared PROPERTIES OUTPUT_NAME libc) +add_library(libc ALIAS libc-static) + set(CMAKE_STATIC_LIBRARY_PREFIX "") set(CMAKE_SHARED_LIBRARY_PREFIX "")