projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be0dfba
)
Add _FORTIFY_SOURCE to default compiler options for linux template
author
Peter Eisentraut
<peter_e@gmx.net>
Sat, 29 Sep 2012 17:22:59 +0000
(13:22 -0400)
committer
Peter Eisentraut
<peter_e@gmx.net>
Sat, 29 Sep 2012 17:22:59 +0000
(13:22 -0400)
Many distributors use this, so we might as well see the warnings as
well.
src/template/linux
patch
|
blob
|
blame
|
history
diff --git
a/src/template/linux
b/src/template/linux
index 3eb5ad2428fdefcbd41c5dda6fa87c708a3abcf1..b3ad4fabba2a4dbf68b9fd810efb8bcab1df26f0 100644
(file)
--- a/
src/template/linux
+++ b/
src/template/linux
@@
-3,6
+3,9
@@
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
+# Many distributors use this, so we might as well see the warnings as well.
+CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
+
# If --enable-profiling is specified, we need -DLINUX_PROFILE
PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"