diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2008-01-01 20:13:56 +0000 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2008-01-01 20:13:56 +0000 |
commit | 04b62921f03f67e98babd7416f0b9dec028c5df2 (patch) | |
tree | 8468535d0ff7370992e4c4ee5f4393dd2957f986 /Configure | |
parent | e9a8c0991ec6634f51266c0ad53e02c328bc0761 (diff) | |
download | perl-04b62921f03f67e98babd7416f0b9dec028c5df2.tar.gz |
Bring back the platforms that do not support -fstack-protector
p4raw-id: //depot/perl@32795
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 27 |
1 files changed, 16 insertions, 11 deletions
@@ -26,7 +26,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Sat Dec 29 15:53:27 CET 2007 [metaconfig 3.0 PL70] +# Generated on Tue Jan 1 21:12:58 CET 2008 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <<EOF @@ -5052,16 +5052,21 @@ checkccflag='check=$1; flag=$2; callback=$3; echo " "; echo "Checking if your compiler accepts $flag" 2>&1; echo "int main(void) { return 0; }" > gcctest.c; -if $cc -O2 $flag -o gcctest gcctest.c && ./gcctest; then +if $cc -O2 $flag -o gcctest gcctest.c 2>gcctest.out && ./gcctest; then echo "Yes, it does." 2>&1; - case "$ccflags" in - *$check*) - echo "Leaving current flags $ccflags alone." 2>&1 - ;; - *) dflt="$dflt $flag"; - eval $callback - ;; - esac + if -s gcctest.out ; then + echo "But your platform does not like it:"; + cat gcctest.out; + else + case "$ccflags" in + *$check*) + echo "Leaving current flags $ccflags alone." 2>&1 + ;; + *) dflt="$dflt $flag"; + eval $callback + ;; + esac + fi else echo "Nope, it does not, but that is ok." 2>&1; fi @@ -5366,7 +5371,7 @@ y) ;; n) echo "OK, that should do.";; esac -$rm_try +$rm_try gcctest.out : define a shorthand compile call compile=' |