userspace: Add empty libm and libpthread
These making porting stuff easier. I could not find a way to tell CMake that the system does not have threads library
This commit is contained in:
18
userspace/libraries/LibMath/CMakeLists.txt
Normal file
18
userspace/libraries/LibMath/CMakeLists.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
set(SOURCES
|
||||
dummy.cpp
|
||||
)
|
||||
|
||||
add_library(libmath-static STATIC ${SOURCES})
|
||||
add_library(libmath-shared SHARED ${SOURCES})
|
||||
|
||||
target_link_options(libmath-static PRIVATE -nolibc)
|
||||
target_link_options(libmath-shared PRIVATE -nolibc)
|
||||
|
||||
banan_link_library(libmath-static libc)
|
||||
banan_link_library(libmath-shared libc)
|
||||
|
||||
set_target_properties(libmath-static PROPERTIES OUTPUT_NAME libm)
|
||||
set_target_properties(libmath-shared PROPERTIES OUTPUT_NAME libm)
|
||||
|
||||
install(TARGETS libmath-static OPTIONAL)
|
||||
install(TARGETS libmath-shared OPTIONAL)
|
||||
0
userspace/libraries/LibMath/dummy.cpp
Normal file
0
userspace/libraries/LibMath/dummy.cpp
Normal file
Reference in New Issue
Block a user