From 6da591dd920b35d4ab8ca8d1845b8e13e41f3520 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 12 Feb 2022 14:00:50 +0100 Subject: [PATCH] linker fixes --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6dbcb00..85caf11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,11 +102,11 @@ endif () if (STATICC) message(STATUS "Linking C statically.") set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed") - SET(_LIBRARYLINKS ${_LIBRARYLINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread) + SET(_LIBRARYLINKS ${_LIBRARYLINKS} -static-libgcc -static-libstdc++) endif () # And link the libraries together -target_link_libraries(CreatureLib PUBLIC ${_LIBRARYLINKS} Threads::Threads) +target_link_libraries(CreatureLib PUBLIC ${_LIBRARYLINKS}) if (CREATURELIB_TESTS) CPMAddPackage(