diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-09-21 02:33:46 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-09-21 02:33:46 +0000 |
commit | 017daed0dd8bc158b97fe5c6ecb839a56905fc52 (patch) | |
tree | 0206668136d7d34f029c6a6d4d6de4b6ae220863 /src | |
parent | 02185a07161e1e9fb8a50bc50d163830bb7a860a (diff) | |
download | postgresql-017daed0dd8bc158b97fe5c6ecb839a56905fc52.tar.gz postgresql-017daed0dd8bc158b97fe5c6ecb839a56905fc52.zip |
If we're gonna provide an --enable-profiling configure option, surely
it ought to know that you need -DLINUX_PROFILE on Linux.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/pg_config.h.in | 3 | ||||
-rw-r--r-- | src/template/linux | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index a0e451b0e0c..0f583953769 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -617,7 +617,8 @@ /* A string containing the version number, platform, and C compiler */ #undef PG_VERSION_STR -/* Define to 1 to enable profiling. (--enable-profiling) */ +/* Define to 1 to allow profiling output to be saved separately for each + process. */ #undef PROFILE_PID_DIR /* Define to the necessary symbol if this constant uses a non-standard name on diff --git a/src/template/linux b/src/template/linux index dff0eca6f10..ed800d23f12 100644 --- a/src/template/linux +++ b/src/template/linux @@ -1,4 +1,7 @@ -# $PostgreSQL: pgsql/src/template/linux,v 1.29 2006/12/12 19:43:19 petere Exp $ +# $PostgreSQL: pgsql/src/template/linux,v 1.30 2007/09/21 02:33:46 tgl Exp $ # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" + +# If --enable-profiling is specified, we need -DLINUX_PROFILE +PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE" |