Add _FORTIFY_SOURCE to default compiler options for linux template

Many distributors use this, so we might as well see the warnings as
well.
This commit is contained in:
Peter Eisentraut 2012-09-29 13:22:59 -04:00
parent be0dfbad36
commit 997fa75d6b
1 changed files with 3 additions and 0 deletions

View File

@ -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"