From: Benjamin Peterson Date: Wed, 7 Sep 2016 19:00:06 +0000 (-0700) Subject: put -std=c99 in CFLAGS_NODIST X-Git-Tag: v3.6.0b1~334 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d1702565855318d4c1984e997d973fc8d2f8a154;p=thirdparty%2FPython%2Fcpython.git put -std=c99 in CFLAGS_NODIST --- diff --git a/configure b/configure index 121cf6a1100f..94a74353f4a2 100755 --- a/configure +++ b/configure @@ -6694,8 +6694,6 @@ then SCO_SV*) OPT="$OPT -m486 -DSCO5" ;; esac - - OPT="$OPT -std=c99" ;; *) @@ -6714,6 +6712,8 @@ UNIVERSAL_ARCH_FLAGS= # tweak BASECFLAGS based on compiler and platform case $GCC in yes) + CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" + # Python doesn't violate C99 aliasing rules, but older versions of # GCC produce warnings for legal Python code. Enable # -fno-strict-aliasing on versions of GCC that support but produce diff --git a/configure.ac b/configure.ac index 3f723693d699..cd598f0b098a 100644 --- a/configure.ac +++ b/configure.ac @@ -1458,8 +1458,6 @@ then SCO_SV*) OPT="$OPT -m486 -DSCO5" ;; esac - - OPT="$OPT -std=c99" ;; *) @@ -1478,6 +1476,8 @@ AC_SUBST(UNIVERSAL_ARCH_FLAGS) # tweak BASECFLAGS based on compiler and platform case $GCC in yes) + CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" + # Python doesn't violate C99 aliasing rules, but older versions of # GCC produce warnings for legal Python code. Enable # -fno-strict-aliasing on versions of GCC that support but produce