]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix variable reference to fix --enable-profiling (closes #17550)
authorBenjamin Peterson <benjamin@python.org>
Tue, 26 Mar 2013 12:55:37 +0000 (08:55 -0400)
committerBenjamin Peterson <benjamin@python.org>
Tue, 26 Mar 2013 12:55:37 +0000 (08:55 -0400)
Misc/NEWS
configure
configure.ac

index 0649bc863aea6057c31bce3696e11a223615d325..2bbc633659a9d7309af10b5e8bee39061cb3f2ed 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -6,6 +6,11 @@ What's New in Python 2.7.4?
 
 *Release date: XXXX-XX-XX*
 
+Build
+-----
+
+- Issue #17550: Fix the --enable-profiling configure switch.
+
 Core and Builtins
 -----------------
 
index d3c722fcd52cb5e550152d50ead0a07bff1ec143..528aa512ae09b527cc38d715bec9a26c00cf02c2 100755 (executable)
--- a/configure
+++ b/configure
@@ -5281,7 +5281,7 @@ fi
 
 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; }
index 66c8a457e314454b3b50f91e1be3b271497fcc70..cb2a958fbfe8f2f64bed2116413b36bac73141e1 100644 (file)
@@ -833,7 +833,7 @@ AC_ARG_ENABLE(profiling,
               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])