Skip to content

Commit ddc19be

Browse files
committed
Remove libgcc_s as a dependency when trying to compile static binaries
1 parent 59016d2 commit ddc19be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ if (OPENMP_FOUND)
219219
if (PREFER_STATIC)
220220
set(FILTERED_LIBRARIES "")
221221
foreach(LIB ${OpenMP_CXX_LIBRARIES})
222-
if (NOT LIB MATCHES "pthread")
222+
if (NOT LIB MATCHES "pthread" AND NOT LIB MATCHES "gcc_s")
223223
list(APPEND FILTERED_LIBRARIES ${LIB})
224224
endif ()
225225
endforeach()

0 commit comments

Comments
 (0)