From: Rafael Garcia-Suarez Date: Fri, 16 Apr 2004 15:53:37 +0000 (+0000) Subject: On Linux-PPC, using gcc, downgrade to the -O1 optimisation X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=be92ff21b1b31bf647f96c308fe1a246f1974bde;p=p5sagit%2Fp5-mst-13.2.git On Linux-PPC, using gcc, downgrade to the -O1 optimisation level (with -O2 miniperl behaves really badly.) p4raw-id: //depot/perl@22706 --- diff --git a/hints/linux.sh b/hints/linux.sh index 551d96e..61d9fc8 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -86,7 +86,16 @@ esac case "$optimize" in # use -O2 by default ; -O3 doesn't seem to bring significant benefits with gcc -'') optimize='-O2' ;; +'') + optimize='-O2' + case "`uname -m`" in + ppc*) + # on ppc, it seems that gcc (at least gcc 3.3.2) isn't happy + # with -O2 ; so downgrade to -O1. + optimize='-O1' + ;; + esac + ;; esac # Are we using ELF? Thanks to Kenneth Albanowski