no_plan support in test.pl
[p5sagit/p5-mst-13.2.git] / hints / linux.sh
index 551d96e..61d9fc8 100644 (file)
@@ -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>