From 39fca21e11889481b32f805a26e48fec73b4b9d0 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Tue, 25 Oct 2022 20:54:47 +0200 Subject: [PATCH] LibC: Link against the full LibSystem target I'm not sure why this wasn't done to begin with, but let's see if this resolves our "can't find libsystem.so while double-checking undefined symbols" issues. --- Userland/Libraries/LibC/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibC/CMakeLists.txt b/Userland/Libraries/LibC/CMakeLists.txt index 97d76aaee5..bdc7769e66 100644 --- a/Userland/Libraries/LibC/CMakeLists.txt +++ b/Userland/Libraries/LibC/CMakeLists.txt @@ -174,10 +174,10 @@ set_property( set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nolibc") serenity_libc(LibC c) add_dependencies(LibC crti crt0 crt0_shared crtn) -target_link_libraries(LibC ssp system LibTimeZone) +target_link_libraries(LibC ssp LibSystem LibTimeZone) # We mark LibCStatic as a dependency of LibC because this triggers the build of the LibCStatic target -add_dependencies(LibC LibSystem LibCStatic) +add_dependencies(LibC 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)")