From: Benjamin Peterson Date: Tue, 26 Mar 2013 12:55:37 +0000 (-0400) Subject: fix variable reference to fix --enable-profiling (closes #17550) X-Git-Tag: v2.7.4~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9be7bbe2e86f8ac5fd6a26b049d47d541d28f4e;p=thirdparty%2FPython%2Fcpython.git fix variable reference to fix --enable-profiling (closes #17550) --- diff --git a/Misc/NEWS b/Misc/NEWS index 0649bc863aea..2bbc633659a9 100644 --- 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 ----------------- diff --git a/configure b/configure index d3c722fcd52c..528aa512ae09 100755 --- 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; } diff --git a/configure.ac b/configure.ac index 66c8a457e314..cb2a958fbfe8 100644 --- a/configure.ac +++ b/configure.ac @@ -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])