diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e7d4e363..20c79419 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -219,7 +219,7 @@ if (OPENMP_FOUND) if (PREFER_STATIC) set(FILTERED_LIBRARIES "") foreach(LIB ${OpenMP_CXX_LIBRARIES}) - if (NOT LIB MATCHES "pthread") + if (NOT LIB MATCHES "pthread" AND NOT LIB MATCHES "gcc_s") list(APPEND FILTERED_LIBRARIES ${LIB}) endif () endforeach()