Skip to content

Commit 997fa75

Browse files
committed
Add _FORTIFY_SOURCE to default compiler options for linux template
Many distributors use this, so we might as well see the warnings as well.
1 parent be0dfba commit 997fa75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/template/linux

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
44
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
55

6+
# Many distributors use this, so we might as well see the warnings as well.
7+
CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
8+
69
# If --enable-profiling is specified, we need -DLINUX_PROFILE
710
PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"
811

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy