summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hints/irix_6.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/hints/irix_6.sh b/hints/irix_6.sh
index d14ac93af6..09c5ee1d59 100644
--- a/hints/irix_6.sh
+++ b/hints/irix_6.sh
@@ -206,6 +206,10 @@ esac
# Don't groan about unused libraries.
ldflags="$ldflags -Wl,-woff,84"
+case "`$cc -version 2>&1`" in
+*7.2.*) op_cflags='optimize=-O1' ;; # workaround for an optimizer bug
+esac
+
# We don't want these libraries.
# Socket networking is in libc, these are not installed by default,
# and just slow perl down. (scotth@sgi.com)