From ddc19be546230aceb027bb0f9ef16a81a5b36fe6 Mon Sep 17 00:00:00 2001 From: Milot Mirdita Date: Wed, 4 Dec 2024 18:13:50 +0900 Subject: [PATCH] Remove libgcc_s as a dependency when trying to compile static binaries --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()