summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-03-25 00:21:53 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-03-25 00:21:53 (GMT)
commit6cbf90fc0fd552ec7689e5a885b278c05aa866ae (patch)
treec4574ec2c29ca4e0bb244f52e3207d03e601df89 /configure.in
parent2ec1f27716ce8452302665e9c140ac8ae6fb472b (diff)
downloadcpython-6cbf90fc0fd552ec7689e5a885b278c05aa866ae.zip
cpython-6cbf90fc0fd552ec7689e5a885b278c05aa866ae.tar.gz
cpython-6cbf90fc0fd552ec7689e5a885b278c05aa866ae.tar.bz2
Issue #8211: Save/restore CFLAGS around AC_PROG_CC in configure.in, compiler
optimizations are disabled when --with-pydebug is used.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 9773e8c..e9bd94b 100644
--- a/configure.in
+++ b/configure.in
@@ -493,7 +493,9 @@ then
(it is also a good idea to do 'make clean' before compiling)])
fi
+save_CFLAGS=$CFLAGS
AC_PROG_CC
+CFLAGS=$save_CFLAGS
AC_SUBST(CXX)
AC_SUBST(MAINCC)