summaryrefslogtreecommitdiff
path: root/hints/irix_6.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/irix_6.sh')
-rw-r--r--hints/irix_6.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/hints/irix_6.sh b/hints/irix_6.sh
index b09e34dfca..e3df634c9c 100644
--- a/hints/irix_6.sh
+++ b/hints/irix_6.sh
@@ -337,6 +337,18 @@ case "`$cc -version 2>&1`" in
;;
esac
+
+# Workaround [perl #33849]: perl 5.8.6 fails to build on IRIX 6.5 due to
+# bizarre preprocessor bug: cc -E - unfortunately goes into K&R mode, but
+# cc -E file.c doesn't. Force a wrapper to always get the ANSI mode.
+# (We only need to do this for cc, not for gcc. ccversion is computed above.)
+case "$ccversion" in
+'') ;; # gcc. Do nothing.
+*) cppstdin=`pwd`/cppstdin
+ cpprun="$cppstdin"
+ ;;
+esac
+
EOCCBU
# End of cc.cbu callback unit. - Allen