LibM: Move the math standard library to LibC
This commit is contained in:
parent
eef989f9ed
commit
81d46fa100
Notes:
sideshowbarker
2024-07-17 22:01:16 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/81d46fa100 Pull-request: https://github.com/SerenityOS/serenity/pull/15149 Reviewed-by: https://github.com/ADKaster ✅
8 changed files with 5 additions and 10 deletions
Toolchain/Stubs
Userland/Libraries
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
Reference in a new issue