mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
If we're gonna provide an --enable-profiling configure option, surely
it ought to know that you need -DLINUX_PROFILE on Linux.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
dnl $PostgreSQL: pgsql/configure.in,v 1.526 2007/09/12 14:28:55 tgl Exp $
|
||||
dnl $PostgreSQL: pgsql/configure.in,v 1.527 2007/09/21 02:33:46 tgl Exp $
|
||||
dnl
|
||||
dnl Developers, please strive to achieve this order:
|
||||
dnl
|
||||
@ -307,8 +307,8 @@ fi
|
||||
if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
|
||||
if test "$GCC" = yes; then
|
||||
AC_DEFINE([PROFILE_PID_DIR], 1,
|
||||
[Define to 1 to enable profiling. (--enable-profiling)])
|
||||
CFLAGS="$CFLAGS -pg"
|
||||
[Define to 1 to allow profiling output to be saved separately for each process.])
|
||||
CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
|
||||
else
|
||||
AC_MSG_ERROR([--enable-profiling is supported only when using GCC])
|
||||
fi
|
||||
|
Reference in New Issue
Block a user