Further fixes for linker issue.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2020-12-11 12:44:09 +01:00
parent 092fb9b9ce
commit 002d550b80
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 7 additions and 1 deletions

View File

@ -133,7 +133,13 @@ find_package(Threads REQUIRED)
if (STATICC) if (STATICC)
message(STATUS "Linking C library statically") message(STATUS "Linking C library statically")
if (NOT UNIX AND NOT APPLE)
SET(_LINKS ${_LINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread) SET(_LINKS ${_LINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread)
SET(_TESTLINKS ${_TESTLINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread)
else()
SET(_LINKS ${_LINKS} Threads::Threads -static-libgcc -static-libstdc++)
SET(_TESTLINKS ${_TESTLINKS} Threads::Threads -static-libgcc -static-libstdc++)
endif()
else() else()
SET(_LINKS ${_LINKS} Threads::Threads) SET(_LINKS ${_LINKS} Threads::Threads)
endif() endif()