From: Andy Dougherty Date: Tue, 22 Jan 2008 11:59:47 +0000 (-0500) Subject: Re: Perl @ 32984 (also relevant to [perl #33849]) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c297d531cc30766e5e2008f0ec77eb8361943cbf;p=p5sagit%2Fp5-mst-13.2.git Re: Perl @ 32984 (also relevant to [perl #33849]) Message-ID: p4raw-id: //depot/perl@33040 --- diff --git a/hints/irix_6.sh b/hints/irix_6.sh index b09e34d..e3df634 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