]> granicus.if.org Git - python/commitdiff
Merged revisions 79392 via svnmerge from
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 25 Mar 2010 01:02:29 +0000 (01:02 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 25 Mar 2010 01:02:29 +0000 (01:02 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79392 | victor.stinner | 2010-03-25 01:21:53 +0100 (jeu., 25 mars 2010) | 3 lines

  Issue #8211: Save/restore CFLAGS around AC_PROG_CC in configure.in, compiler
  optimizations are disabled when --with-pydebug is used.
........

Misc/NEWS
configure
configure.in

index 8a63a22d2cca2272167886b710fe3403db4c98a9..c0f0d81628924adab5d581b852d1c6eee376af81 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@ What's New in Python 3.2 Alpha 1?
 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 #8226: sys.setfilesystemencoding() raises a LookupError if the encoding
   is unknown
 
index d9c35daaf3a0a7f8d7fbfe7bc6bb4804c01dbb92..3f746104437ff6808c0154006bb25a4eed66de1f 100755 (executable)
--- a/configure
+++ b/configure
@@ -2302,6 +2302,7 @@ echo "$as_me: error: cached CC is different -- throw away $cache_file
    { (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'
@@ -3221,6 +3222,7 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 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
 
 
 
index 6893a07adf59473d9749c039378754f2edba330b..01093672b4d39840f5486de0d6197ad7ab6c82f1 100644 (file)
@@ -441,7 +441,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)