diff --git a/build/cmake/init.cmake b/build/cmake/init.cmake index deb6cbdc06..96bd16e0cd 100644 --- a/build/cmake/init.cmake +++ b/build/cmake/init.cmake @@ -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()