diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-07 12:00:06 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-07 12:00:06 -0700 |
commit | f69d7981b4b0285b351d1b6ad7a4f62f701cf143 (patch) | |
tree | b787097001684bed6ee24d6be239ab8cfeae0682 | |
parent | a2abffdcf2425e08c07b6a3c58dde49c35b81884 (diff) | |
download | cpython-f69d7981b4b0285b351d1b6ad7a4f62f701cf143.tar.gz |
put -std=c99 in CFLAGS_NODIST
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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 3f723693d6..cd598f0b09 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 |