Add winpthread back again

This commit is contained in:
Deukhoofd 2022-02-11 11:46:21 +01:00
parent c58eb2d831
commit 69e7df11d5
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ if (LINK_STD_STATICALLY)
message(STATUS "Linking std libraries statically")
set(as_LINKS -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++)
if (MSVC)
set(as_LINKS "${as_LINKS}")
set(as_LINKS "${as_LINKS} -Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive")
else()
set(as_LINKS "${as_LINKS}")
endif(MSVC)