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(