linker fixes
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2022-02-12 14:00:50 +01:00
1 parent 2a8126e151
commit 6da591dd92
1 file changed
+2 -2
+2 -2
View File
@@ -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(