]> granicus.if.org Git - python/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 2c496dd22ed3afbad2398fe8bbda048a79073bc0..9ac4c9237d01a4c92be2c812a1dbe11dd017bd1a 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -9,6 +9,11 @@ What's New in Python 3.3.1?
 
 .. *Release date: 2013-XX-XX*
 
+Build
+-----
+
+- Issue #17550: Fix the --enable-profiling configure switch.
+
 Core and Builtins
 -----------------
 
index fa8d518783438ec30cd4c1a5e61c6b2edf4ece30..d3214abb8ca0265bd1a464096cba2b18b28ff181 100755 (executable)
--- a/configure
+++ b/configure
@@ -5532,7 +5532,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 8cf0e9251b70d1f5a2c4377c38221306c2867cca..6d54b162c9003eedfc77dc8760672f38dc30a8f0 100644 (file)
@@ -883,7 +883,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])