summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2007-12-19 13:58:35 +0000
committerSteve Peters <steve@fisharerojo.org>2007-12-19 13:58:35 +0000
commit5e49647a0859f6593db3487b4813b840236eca20 (patch)
tree9396bb71291741a0e5af73be82fbd6e3b794aa64 /cflags.SH
parent4eeeaff6ef21db94b76b8e8b5acd5213781c1c82 (diff)
downloadperl-5e49647a0859f6593db3487b4813b840236eca20.tar.gz
Teach cflags.SH about -fstack-protector, and add it to gcc compiler flags
when possible. p4raw-id: //depot/perl@32647
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH2
1 files changed, 1 insertions, 1 deletions
diff --git a/cflags.SH b/cflags.SH
index 9dd6181e73..5c355da3ff 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -134,7 +134,7 @@ case "$gccversion" in
'') ;;
[12]*) ;; # gcc versions 1 (gasp!) and 2 are not good for this.
Intel*) ;; # # Is that you, Intel C++?
-*) for opt in -ansi -pedantic -std=c89 -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
+*) for opt in -ansi -pedantic -std=c89 -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -fstack-protector
do
case " $ccflags " in
*" $opt "*) ;; # Skip if already there.