threaded fixes

This commit is contained in:
Deukhoofd 2022-02-12 12:55:58 +01:00
parent 214e75b992
commit 6444a8ce1c
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 2 deletions

View File

@ -204,8 +204,8 @@ endif ()
if (STATICC)
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
message(STATUS "Linking C library statically")
set(_LINKS ${_LINKS} -static-libstdc++ -Wl,-Bstatic -lgcc -lstdc++ -lpthread -Wl,-Bdynamic)
SET(_TESTLINKS ${_TESTLINKS} -Wl,-Bstatic -lgcc -lstdc++ -lpthread -Wl,-Bdynamic)
set(_LINKS ${_LINKS} -static-libstdc++)
SET(_TESTLINKS ${_TESTLINKS})
endif ()
target_link_libraries(pkmnLib PRIVATE ${_LINKS})