From 62e0bf852ea539620c3e56fbef0d9de5384ab0eb Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 7 Sep 2021 20:35:43 -0400 Subject: [PATCH] Kernel: Don't link Prekernel against libsupc++ It isn't needed. Also, we stopped linking Kernel against it in 67f0c0d5f074. libsupc++ depends on symbols like free() or realloc() which we removed from Kernel/StdLib.cpp after 67f0c0d5f074 and which don't exist in Prekernel either. (It also happens to make the aarc64 link fail in less obvious ways.) --- Kernel/Prekernel/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Prekernel/CMakeLists.txt b/Kernel/Prekernel/CMakeLists.txt index 9aabfdfb56..7943e05b69 100644 --- a/Kernel/Prekernel/CMakeLists.txt +++ b/Kernel/Prekernel/CMakeLists.txt @@ -39,7 +39,7 @@ set_target_properties(${PREKERNEL_TARGET} PROPERTIES LINK_DEPENDS ${CMAKE_CURREN if (USE_CLANG_TOOLCHAIN) target_link_libraries(${PREKERNEL_TARGET} clang_rt.builtins-${SERENITY_CLANG_ARCH} c++abi) else() - target_link_libraries(${PREKERNEL_TARGET} gcc supc++) + target_link_libraries(${PREKERNEL_TARGET} gcc) endif() if ("${SERENITY_ARCH}" STREQUAL "i686" OR "${SERENITY_ARCH}" STREQUAL "x86_64")