[Python-checkins] r79392 - in python/trunk: Misc/NEWS configure configure.in
victor.stinner
python-checkins at python.org
Thu Mar 25 01:21:53 CET 2010
Author: victor.stinner
Date: Thu Mar 25 01:21:53 2010
New Revision: 79392
Log:
Issue #8211: Save/restore CFLAGS around AC_PROG_CC in configure.in, compiler
optimizations are disabled when --with-pydebug is used.
Modified:
python/trunk/Misc/NEWS
python/trunk/configure
python/trunk/configure.in
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Thu Mar 25 01:21:53 2010
@@ -12,6 +12,9 @@
Core and Builtins
-----------------
+- Issue #8211: Save/restore CFLAGS around AC_PROG_CC in configure.in, compiler
+ optimizations are disabled when --with-pydebug is used.
+
- Issue #1583863: An unicode subclass can now override the __unicode__ method
- Issue #6474: Make error message from passing an inadequate number of keyword
Modified: python/trunk/configure
==============================================================================
--- python/trunk/configure (original)
+++ python/trunk/configure Thu Mar 25 01:21:53 2010
@@ -2367,6 +2367,7 @@
{ (exit 1); exit 1; }; }
fi
+save_CFLAGS=$CFLAGS
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3286,6 +3287,7 @@
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
+CFLAGS=$save_CFLAGS
Modified: python/trunk/configure.in
==============================================================================
--- python/trunk/configure.in (original)
+++ python/trunk/configure.in Thu Mar 25 01:21:53 2010
@@ -493,7 +493,9 @@
(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)
More information about the Python-checkins
mailing list