summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-08-10 03:01:49 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-08-10 03:01:49 (GMT)
commitacb8c5234302f8057b331abaafb2cc8697daf58f (patch)
treec2fcf8f963d5c9755937799022e05e210534211f /configure
parent3b48af018f6a7e7d1d0ec5acefe2890361dbf832 (diff)
downloadcpython-acb8c5234302f8057b331abaafb2cc8697daf58f.zip
cpython-acb8c5234302f8057b331abaafb2cc8697daf58f.tar.gz
cpython-acb8c5234302f8057b331abaafb2cc8697daf58f.tar.bz2
add -Werror=declaration-after-statement only to stdlib extension modules (closes #21121)
Patch from Stefan Krah.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index 87e6f3e..7379203 100755
--- a/configure
+++ b/configure
@@ -662,6 +662,7 @@ SHLIB_SUFFIX
LIBTOOL_CRUFT
OTHER_LIBTOOL_OPT
UNIVERSAL_ARCH_FLAGS
+CFLAGS_NODIST
BASECFLAGS
OPT
ABIFLAGS
@@ -6292,6 +6293,7 @@ fi
+
# The -arch flags for universal builds on OSX
UNIVERSAL_ARCH_FLAGS=
@@ -6452,7 +6454,7 @@ $as_echo "$ac_cv_declaration_after_statement_warning" >&6; }
if test $ac_cv_declaration_after_statement_warning = yes
then
- BASECFLAGS="$BASECFLAGS -Werror=declaration-after-statement"
+ CFLAGS_NODIST="$CFLAGS_NODIST -Werror=declaration-after-statement"
fi
# if using gcc on alpha, use -mieee to get (near) full IEEE 754