From b229865bd78f090786fd1700dd93ef6023d23fe5 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Wed, 5 Sep 2012 21:45:03 +0200 Subject: [PATCH] Win32: Statically link libgcc and libstdc++ Else one needs to copy those files from mingw32.. and I see no reason not to statically link them. --- neo/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index e159bcb7..63c4183c 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -196,6 +196,8 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang") endif() set(sys_libs ${sys_libs} "-framework Carbon -framework Cocoa -framework IOKit") + elseif(WIN32) + set(ldflags "${ldflags} -static-libgcc -static-libstdc++") else() if(os STREQUAL "linux") set(sys_libs ${sys_libs} dl)