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

This commit is contained in:
Deukhoofd 2022-02-12 14:00:50 +01:00
parent 2a8126e151
commit 6da591dd92
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 2 deletions

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(