From: Steve Peters Date: Wed, 19 Dec 2007 13:58:35 +0000 (+0000) Subject: Teach cflags.SH about -fstack-protector, and add it to gcc compiler flags X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5e49647a0859f6593db3487b4813b840236eca20;p=p5sagit%2Fp5-mst-13.2.git Teach cflags.SH about -fstack-protector, and add it to gcc compiler flags when possible. p4raw-id: //depot/perl@32647 --- diff --git a/cflags.SH b/cflags.SH index 9dd6181..5c355da 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.