From 7be4d12749f2eeddfe3d037779478189f2c7cef9 Mon Sep 17 00:00:00 2001 From: Deamhan Date: Mon, 15 Jul 2019 00:10:45 +0300 Subject: [PATCH] CMake: pthread symbols has been removed from export (MinGW) --- build/cmake/init.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()