summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2012-09-29 17:22:59 +0000
committerPeter Eisentraut2012-09-29 17:22:59 +0000
commit997fa75d6b1522658d4464396cb91264f642634a (patch)
tree948a66a64595d63166e39d546ec59f863335c76e
parentbe0dfbad3671ed2503a2a661e70b48c5b364e069 (diff)
Add _FORTIFY_SOURCE to default compiler options for linux template
Many distributors use this, so we might as well see the warnings as well.
-rw-r--r--src/template/linux3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/template/linux b/src/template/linux
index 3eb5ad2428..b3ad4fabba 100644
--- 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"