On cygwin, use -std=gnu++11 instead of -std=c++11

This allows compiling without monkeying with compiler guards.
This commit is contained in:
Enrico Forestieri 2015-09-09 02:34:18 +02:00
parent bde1bee24e
commit 864a4db26b

View File

@ -362,8 +362,9 @@ if test x$GXX = xyes; then
dnl the deprecated-register warning is very annoying with Qt4.x right now.
AM_CXXFLAGS="$AM_CXXFLAGS -std=c++11 -Wno-deprecated-register";;
*)
AM_CXXFLAGS="$AM_CXXFLAGS -std=c++11"
AS_CASE([$host], [*cygwin*], [AM_CXXFLAGS="$AM_CXXFLAGS -U__STRICT_ANSI__"]);;
AS_CASE([$host], [*cygwin*],
[AM_CXXFLAGS="$AM_CXXFLAGS -std=gnu++11"],
[AM_CXXFLAGS="$AM_CXXFLAGS -std=c++11"]);;
esac
fi