Change 33040 by [EMAIL PROTECTED] on 2008/01/22 23:49:53
Subject: [PATCH] Re: Perl @ 32984 (also relevant to [perl #33849])
From: Andrew Dougherty <[EMAIL PROTECTED]>
Date: Tue, 22 Jan 2008 11:59:47 -0500 (EST)
Message-ID: <[EMAIL PROTECTED]>
Affected files ...
... //depot/perl/hints/irix_6.sh#67 edit
Differences ...
==== //depot/perl/hints/irix_6.sh#67 (text) ====
Index: perl/hints/irix_6.sh
--- perl/hints/irix_6.sh#66~23439~ 2004-10-31 01:17:57.000000000 -0700
+++ perl/hints/irix_6.sh 2008-01-22 15:49:53.000000000 -0800
@@ -337,6 +337,18 @@
;;
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
End of Patch.