From 84993d237f50b4ff909813a3d9cc420b80e94c01 Mon Sep 17 00:00:00 2001 From: Bertrand Lorentz Date: Sun, 23 Feb 2014 16:41:07 +0100 Subject: [PATCH] build: Remove obsolete gcc flag when building on Windows The -mno-cygwin parameter has been obsolete for quite some time. It is now gone in recent gcc version, causing an error when you try to use it. My understanding that gcc now does the right thing automatically. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1b0189d39..0712d6b46 100644 --- a/configure.ac +++ b/configure.ac @@ -27,7 +27,7 @@ case "$host" in AC_MSG_RESULT([yes, 64-bit]) AC_DEFINE(PLATFORM_WIN32,1,[Platform is Win32]) if test "x$cross_compiling" = "xno"; then - CC="gcc -mno-cygwin -g" + CC="gcc -g" HOST_CC="gcc" fi ;; @@ -36,7 +36,7 @@ case "$host" in AC_MSG_RESULT([yes, 32-bit]) AC_DEFINE(PLATFORM_WIN32,1,[Platform is Win32]) if test "x$cross_compiling" = "xno"; then - CC="gcc -mno-cygwin -g" + CC="gcc -g" HOST_CC="gcc" fi ;;