Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit017daed

Browse files
committed
If we're gonna provide an --enable-profiling configure option, surely
it ought to know that you need -DLINUX_PROFILE on Linux.
1 parent02185a0 commit017daed

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

‎configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3244,7 +3244,7 @@ cat >>confdefs.h <<\_ACEOF
32443244
#define PROFILE_PID_DIR 1
32453245
_ACEOF
32463246

3247-
CFLAGS="$CFLAGS -pg"
3247+
CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
32483248
else
32493249
{ { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
32503250
echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}

‎configure.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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 $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -307,8 +307,8 @@ fi
307307
if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
308308
if test "$GCC" = yes; then
309309
AC_DEFINE([PROFILE_PID_DIR], 1,
310-
[Define to 1 toenable profiling. (--enable-profiling)])
311-
CFLAGS="$CFLAGS -pg"
310+
[Define to 1 toallow profiling output to be saved separately for each process.])
311+
CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
312312
else
313313
AC_MSG_ERROR([--enable-profiling is supported only when using GCC])
314314
fi

‎src/include/pg_config.h.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,8 @@
617617
/* A string containing the version number, platform, and C compiler */
618618
#undef PG_VERSION_STR
619619

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. */
621622
#undef PROFILE_PID_DIR
622623

623624
/* Define to the necessary symbol if this constant uses a non-standard name on

‎src/template/linux

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
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 $
22

33
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
44
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
5+
6+
# If --enable-profiling is specified, we need -DLINUX_PROFILE
7+
PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp