CMake: pthread symbols has been removed from export (MinGW)

This commit is contained in:
Deamhan 2019-07-15 00:10:45 +03:00
parent 82dfc62a62
commit 7be4d12749

View File

@ -44,7 +44,7 @@ if(MSVC)
elseif(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang"))
if(wxBUILD_USE_STATIC_RUNTIME)
if(MINGW)
set(STATIC_LINKER_FLAGS " -static -Wl,--exclude-libs=libgcc_eh.a")
set(STATIC_LINKER_FLAGS " -static -Wl,--exclude-libs=libgcc_eh.a -Wl,--exclude-libs=libpthread.a")
else()
set(STATIC_LINKER_FLAGS " -static-libgcc -static-libstdc++")
endif()