]> granicus.if.org Git - python/commitdiff
put -std=c99 in CFLAGS_NODIST
authorBenjamin Peterson <benjamin@python.org>
Wed, 7 Sep 2016 19:00:06 +0000 (12:00 -0700)
committerBenjamin Peterson <benjamin@python.org>
Wed, 7 Sep 2016 19:00:06 +0000 (12:00 -0700)
configure
configure.ac

index 121cf6a1100f395c6f5e0ce0a1b38cea3cc15354..94a74353f4a20f2e1ebb2d6b4484a0121ce562a5 100755 (executable)
--- 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
index 3f723693d6991fdeaf4aa7a93f4baec49e834d52..cd598f0b098a31ca00861821602e646826180967 100644 (file)
@@ -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