From f8ccda09ac2ed0258bfaa86ea353c466becff25b Mon Sep 17 00:00:00 2001 From: wowzaman12 Date: Mon, 18 May 2015 03:04:34 +0000 Subject: [PATCH] try and get mingw to force static gcc and libc++ --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1abfed5c..212b76be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,8 +11,8 @@ SET( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeScripts ) SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}) option( ENABLE_SDL "Build the SDL port" ON ) -option( ENABLE_GTK "Build the GTK+ GUI" ON ) -option( ENABLE_WX "Build the wxWidgets port" OFF ) +option( ENABLE_GTK "Build the GTK+ GUI" OFF ) +option( ENABLE_WX "Build the wxWidgets port" ON ) option( ENABLE_DEBUGGER "Enable the debugger" ON ) option( ENABLE_NLS "Enable translations" ON ) option( ENABLE_ASM_CORE "Enable x86 ASM CPU cores" OFF ) @@ -181,6 +181,12 @@ SET( CMAKE_CXX_FLAGS_RELEASE "-O3") SET( CMAKE_C_FLAGS_DEBUG "-g -Wall") SET( CMAKE_CXX_FLAGS_DEBUG "-g -Wall") +if (MINGW) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static-libgcc -static") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++ -static") +endif (MINGW) + + add_subdirectory (fex) SET(SRC_MAIN