[Python-checkins] cpython (3.3): fix variable reference to fix --enable-profiling (closes #17550)

georg.brandl python-checkins at python.org
Sat Apr 6 16:44:34 CEST 2013


http://hg.python.org/cpython/rev/2ab2a09901f9
changeset:   83141:2ab2a09901f9
branch:      3.3
user:        Georg Brandl <georg at python.org>
date:        Tue Mar 26 14:04:40 2013 +0100
summary:
  fix variable reference to fix --enable-profiling (closes #17550)

files:
  Misc/NEWS    |  11 +++++++++++
  configure    |   2 +-
  configure.ac |   2 +-
  3 files changed, 13 insertions(+), 2 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2,6 +2,17 @@
 Python News
 +++++++++++
 
+What's New in Python 3.3.1?
+===========================
+
+*Release date: 07-Apr-2013*
+
+Build
+-----
+
+- Issue #17550: Fix the --enable-profiling configure switch.
+
+
 What's New in Python 3.3.1 release candidate 1?
 ===============================================
 
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -5532,7 +5532,7 @@
 
 if test "x$enable_profiling" = xyes; then
   ac_save_cc="$CC"
-  CC="$(CC) -pg"
+  CC="$CC -pg"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 int main() { return 0; }
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -883,7 +883,7 @@
               AS_HELP_STRING([--enable-profiling], [enable C-level code profiling]))
 if test "x$enable_profiling" = xyes; then
   ac_save_cc="$CC"
-  CC="$(CC) -pg"
+  CC="$CC -pg"
   AC_LINK_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],
     [],
     [enable_profiling=no])

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list