1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:07:46 +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

@ -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)")