Skip to content

Commit

Permalink
Remove libgcc_s as a dependency when trying to compile static binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Dec 4, 2024
1 parent 59016d2 commit ddc19be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ddc19be

Please sign in to comment.