Skip to content

Commit

Permalink
only statically link libgcc on non-darwin platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
jshbrntt committed Dec 23, 2024
1 parent 0c20b71 commit 8f5206f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,15 @@ target_link_options(
${PROJECT_NAME}
PRIVATE
-stdlib=libc++
-static-libgcc
-static-libstdc++
)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_link_options(
${PROJECT_NAME}
PRIVATE
-static-libgcc
)
endif()
target_link_libraries(
${PROJECT_NAME}
cxxopts::cxxopts
Expand Down

0 comments on commit 8f5206f

Please sign in to comment.