Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
017daed0
Commit
017daed0
authored
17 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
If we're gonna provide an --enable-profiling configure option, surely
it ought to know that you need -DLINUX_PROFILE on Linux.
parent
02185a07
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
configure
+1
-1
1 addition, 1 deletion
configure
configure.in
+3
-3
3 additions, 3 deletions
configure.in
src/include/pg_config.h.in
+2
-1
2 additions, 1 deletion
src/include/pg_config.h.in
src/template/linux
+4
-1
4 additions, 1 deletion
src/template/linux
with
10 additions
and
6 deletions
configure
+
1
−
1
View file @
017daed0
...
...
@@ -3244,7 +3244,7 @@ cat >>confdefs.h <<\_ACEOF
#define PROFILE_PID_DIR 1
_ACEOF
CFLAGS="$CFLAGS -pg"
CFLAGS="$CFLAGS -pg
$PLATFORM_PROFILE_FLAGS
"
else
{ { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
...
...
This diff is collapsed.
Click to expand it.
configure.in
+
3
−
3
View file @
017daed0
dnl Process this file with autoconf to produce a configure script.
dnl $PostgreSQL: pgsql/configure.in,v 1.52
6
2007/09/
12 14:28:55
tgl Exp $
dnl $PostgreSQL: pgsql/configure.in,v 1.52
7
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
...
...
This diff is collapsed.
Click to expand it.
src/include/pg_config.h.in
+
2
−
1
View file @
017daed0
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/template/linux
+
4
−
1
View file @
017daed0
# $PostgreSQL: pgsql/src/template/linux,v 1.
29
200
6/12/12 19:43:19 petere
Exp $
# $PostgreSQL: pgsql/src/template/linux,v 1.
30
200
7/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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment