summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/mingw32.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/mingw32.cmake b/cmake/mingw32.cmake
index 90766df..9f04ebf 100644
--- a/cmake/mingw32.cmake
+++ b/cmake/mingw32.cmake
@@ -15,3 +15,5 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+# We want libgcc being statically linked. Everything else is annoying
+set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -static-libgcc")