LibM: Move the math standard library to LibC

This commit is contained in:
Tim Schumacher 2022-09-05 18:43:46 +02:00 committed by Brian Gianforcaro
parent eef989f9ed
commit 81d46fa100
8 changed files with 5 additions and 10 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -22,6 +22,7 @@ set(LIBC_SOURCES
link.cpp link.cpp
locale.cpp locale.cpp
malloc.cpp malloc.cpp
math.cpp
mntent.cpp mntent.cpp
net.cpp net.cpp
netdb.cpp netdb.cpp

View file

@ -1,10 +1,4 @@
set(SOURCES # Provide a dummy target and a linker script that tells everything to link against LibC instead.
math.cpp add_library(LibM INTERFACE)
../LibC/ssp.cpp target_link_libraries(LibM INTERFACE LibC)
) file(WRITE "${CMAKE_STAGING_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libm.so" "INPUT(libc.so)")
set_source_files_properties (../LibC/ssp.cpp PROPERTIES COMPILE_FLAGS
"-fno-stack-protector")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdlib")
serenity_libc(LibM m)