diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-04-16 15:53:37 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-04-16 15:53:37 +0000 |
commit | be92ff21b1b31bf647f96c308fe1a246f1974bde (patch) | |
tree | 2c0fff503475dd81e2848854b3aa17ed54947dcd | |
parent | 2f4c2f3e1aa24195544992a1971d49399f86d7ec (diff) | |
download | perl-be92ff21b1b31bf647f96c308fe1a246f1974bde.tar.gz |
On Linux-PPC, using gcc, downgrade to the -O1 optimisation
level (with -O2 miniperl behaves really badly.)
p4raw-id: //depot/perl@22706
-rw-r--r-- | hints/linux.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/hints/linux.sh b/hints/linux.sh index 551d96e180..61d9fc8e5e 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 <kjahds@kjahds.com> |