Fixes for linking pthread statically
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2021-08-29 16:08:58 +02:00
parent e323b62250
commit 2123a01151
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ if (STATICC)
set(_LINKS ${_LINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -lstdc++ -lpthread -Wl,-Bdynamic)
SET(_TESTLINKS ${_TESTLINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic)
else()
SET(_LINKS ${_LINKS} -lpthread)
SET(_LINKS ${_LINKS} -Wl,--whole-archive -lpthread -Wl,--no-whole-archive)
endif()
target_link_libraries(pkmnLib PUBLIC ${_LINKS})