mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
LibM: Move the math standard library to LibC
This commit is contained in:
parent
eef989f9ed
commit
81d46fa100
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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
|
||||||
|
|
|
@ -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)
|
|
||||||
|
|
Loading…
Reference in a new issue