Change 32795 by [EMAIL PROTECTED] on 2008/01/01 20:13:56

        Bring back the platforms that do not support -fstack-protector

Affected files ...

... //depot/perl/Configure#674 edit

Differences ...

==== //depot/perl/Configure#674 (xtext) ====
Index: perl/Configure
--- perl/Configure#673~32773~   2007-12-29 06:54:57.000000000 -0800
+++ perl/Configure      2008-01-01 12:13:56.000000000 -0800
@@ -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 [EMAIL PROTECTED])
 
 cat >c1$$ <<EOF
@@ -5052,16 +5052,21 @@
 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 @@
        ;;
 n) echo "OK, that should do.";;
 esac
-$rm_try
+$rm_try gcctest.out
 
 : define a shorthand compile call
 compile='
End of Patch.

Reply via email to