File tree 4 files changed +10
-6
lines changed
4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -3244,7 +3244,7 @@ cat >>confdefs.h <<\_ACEOF
3244
3244
#define PROFILE_PID_DIR 1
3245
3245
_ACEOF
3246
3246
3247
- CFLAGS="$CFLAGS -pg"
3247
+ CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS "
3248
3248
else
3249
3249
{ { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3250
3250
echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
Original file line number Diff line number Diff line change 1
1
dnl Process this file with autoconf to produce a configure script.
2
- dnl $PostgreSQL: pgsql/configure.in,v 1.526 2007/09/12 14:28:55 tgl Exp $
2
+ dnl $PostgreSQL: pgsql/configure.in,v 1.527 2007/09/21 02:33:46 tgl Exp $
3
3
dnl
4
4
dnl Developers, please strive to achieve this order:
5
5
dnl
307
307
if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
308
308
if test "$GCC" = yes; then
309
309
AC_DEFINE([PROFILE_PID_DIR], 1,
310
- [Define to 1 to enable profiling. (--enable-profiling) ])
311
- CFLAGS="$CFLAGS -pg"
310
+ [Define to 1 to allow profiling output to be saved separately for each process. ])
311
+ CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS "
312
312
else
313
313
AC_MSG_ERROR([--enable-profiling is supported only when using GCC])
314
314
fi
Original file line number Diff line number Diff line change 617
617
/* A string containing the version number, platform, and C compiler */
618
618
#undef PG_VERSION_STR
619
619
620
- /* Define to 1 to enable profiling. (--enable-profiling) */
620
+ /* Define to 1 to allow profiling output to be saved separately for each
621
+ process. */
621
622
#undef PROFILE_PID_DIR
622
623
623
624
/* Define to the necessary symbol if this constant uses a non-standard name on
Original file line number Diff line number Diff line change 1
- # $PostgreSQL: pgsql/src/template/linux,v 1.29 2006/12/12 19:43:19 petere Exp $
1
+ # $PostgreSQL: pgsql/src/template/linux,v 1.30 2007/09/21 02:33:46 tgl Exp $
2
2
3
3
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
4
4
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
5
+
6
+ # If --enable-profiling is specified, we need -DLINUX_PROFILE
7
+ PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"
You can’t perform that action at this time.
0 commit comments