1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:07:45 +00:00

Everywhere: Fully remove the separate LibM directory

This commit is contained in:
Tim Schumacher 2022-09-06 01:01:21 +02:00 committed by Brian Gianforcaro
parent bbcdd0dca0
commit 1b25c38b8b
8 changed files with 8 additions and 14 deletions

View file

@ -33,7 +33,6 @@ add_subdirectory(LibJS)
add_subdirectory(LibKeyboard)
add_subdirectory(LibLine)
add_subdirectory(LibLocale)
add_subdirectory(LibM)
add_subdirectory(LibMain)
add_subdirectory(LibMarkdown)
add_subdirectory(LibPartition)

View file

@ -184,3 +184,8 @@ add_dependencies(LibC LibM LibSystem LibCStatic)
# Provide a linker script instead of various other libraries that tells everything to link against LibC.
file(WRITE "${CMAKE_STAGING_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libpthread.so" "INPUT(libc.so)")
file(WRITE "${CMAKE_STAGING_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libdl.so" "INPUT(libc.so)")
# Provide a dummy target and a linker script for LibM 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)")

View file

@ -1,4 +0,0 @@
# 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)")