summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-03-26 08:55:37 -0400
committerBenjamin Peterson <benjamin@python.org>2013-03-26 08:55:37 -0400
commit615ea1a98f07bc67c8a65ff82888298d3cce9153 (patch)
tree5079363005c0bc5dbaeaa9e92305acc2e2f67fde
parenta1eb483d8fcf785e13829d3e3d6cb0d772443d7a (diff)
downloadcpython-git-615ea1a98f07bc67c8a65ff82888298d3cce9153.tar.gz
fix variable reference to fix --enable-profiling (closes #17550)
-rw-r--r--Misc/NEWS5
-rwxr-xr-xconfigure2
-rw-r--r--configure.ac2
3 files changed, 7 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 2c496dd22e..9ac4c9237d 100644
--- 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
-----------------
diff --git a/configure b/configure
index fa8d518783..d3214abb8c 100755
--- 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; }
diff --git a/configure.ac b/configure.ac
index 8cf0e9251b..6d54b162c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])