feat(userspace/libc): implement functions for porting apps

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-03-24 00:40:07 +00:00
parent 27356b7826
commit 0d8c65e44b
22 changed files with 615 additions and 25 deletions

View File

@ -0,0 +1,15 @@
cmake_minimum_required(VERSION 3.10)
project(FennixRealTimeLibrary)
set(SOURCES libpthread.c)
add_library(pthread STATIC ${SOURCES})
add_library(pthread_shared SHARED ${SOURCES})
target_link_options(pthread_shared PRIVATE -nostdlib)
set_target_properties(pthread_shared PROPERTIES OUTPUT_NAME "pthread")
install(TARGETS pthread pthread_shared
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
PUBLIC_HEADER DESTINATION include)