1. mirror
  2. cpython

Commits

Benjamin Peterson  committed 27cb49e

fix variable reference to fix --enable-profiling (closes #17550)

  • Participants
  • Parent commits 391e3a7
  • Branches 2.7

Comments (0)

Files changed (3)

File Misc/NEWS

View file
  • Ignore whitespace
 
 *Release date: XXXX-XX-XX*
 
+Build
+-----
+
+- Issue #17550: Fix the --enable-profiling configure switch.
+
 Core and Builtins
 -----------------
 

File configure

View file
  • Ignore whitespace
 
 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; }

File configure.ac

View file
  • Ignore whitespace
               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])