mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:14:58 +00:00
LibM: Move the math standard library to LibC
This commit is contained in:
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.
|
@ -22,6 +22,7 @@ set(LIBC_SOURCES
|
|||
link.cpp
|
||||
locale.cpp
|
||||
malloc.cpp
|
||||
math.cpp
|
||||
mntent.cpp
|
||||
net.cpp
|
||||
netdb.cpp
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
set(SOURCES
|
||||
math.cpp
|
||||
../LibC/ssp.cpp
|
||||
)
|
||||
|
||||
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)
|
||||
# Provide a dummy target and a linker script that tells everything to link against LibC instead.
|
||||
add_library(LibM INTERFACE)
|
||||
target_link_libraries(LibM INTERFACE LibC)
|
||||
file(WRITE "${CMAKE_STAGING_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libm.so" "INPUT(libc.so)")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue