LibC: Remove the LibDl
interface target
This commit is contained in:
parent
8778bb3473
commit
da0e28dccc
Notes:
sideshowbarker
2024-07-17 07:30:53 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/da0e28dccc Pull-request: https://github.com/SerenityOS/serenity/pull/14854
3 changed files with 3 additions and 7 deletions
|
@ -24,5 +24,5 @@ set(TEST_SOURCES
|
|||
)
|
||||
|
||||
foreach(source IN LISTS TEST_SOURCES)
|
||||
serenity_test("${source}" LibELF LIBS LibDl)
|
||||
serenity_test("${source}" LibELF)
|
||||
endforeach()
|
||||
|
|
|
@ -180,10 +180,6 @@ target_link_libraries(LibC ssp system LibTimeZone)
|
|||
# We mark LibCStatic as a dependency of LibC because this triggers the build of the LibCStatic target
|
||||
add_dependencies(LibC LibM LibSystem LibCStatic)
|
||||
|
||||
# Provide a linker script instead of LibPthread that tells everything to link against LibC.
|
||||
# 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)")
|
||||
|
||||
# Provide a dummy target and a linker script for LibDl that tells everything to link against LibC instead.
|
||||
add_library(LibDl INTERFACE)
|
||||
target_link_libraries(LibDl INTERFACE LibC)
|
||||
file(WRITE "${CMAKE_STAGING_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libdl.so" "INPUT(libc.so)")
|
||||
|
|
|
@ -3,6 +3,6 @@ set(SOURCES
|
|||
)
|
||||
|
||||
serenity_lib(LibGPU gpu)
|
||||
target_link_libraries(LibGPU LibCore LibDl)
|
||||
target_link_libraries(LibGPU LibCore)
|
||||
|
||||
add_dependencies(LibGPU LibSoftGPU)
|
||||
|
|
Loading…
Add table
Reference in a new issue