diff options
author | jschauma <jschauma> | 2004-04-12 02:51:22 +0000 |
---|---|---|
committer | jschauma <jschauma> | 2004-04-12 02:51:22 +0000 |
commit | f5c10537703882850f2e6688881b130b6542bad3 (patch) | |
tree | 6de9c896130bf4626f99d887a33a75bb5411747b /lang/perl5/patches | |
parent | f0eaf63f07659d6fdfc754b6123111630452694b (diff) | |
download | pkgsrc-f5c10537703882850f2e6688881b130b6542bad3.tar.gz |
Make this build under Irix with mipspro compilers:
MIPSPro compiler/preprocessor behaves differently if invoked on
stdin vs file. In configure, we test for stdin, but lateron we use files.
So force it to work the way we know it does.
Diffstat (limited to 'lang/perl5/patches')
-rw-r--r-- | lang/perl5/patches/patch-ca | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/perl5/patches/patch-ca b/lang/perl5/patches/patch-ca new file mode 100644 index 00000000000..493d7cb08c6 --- /dev/null +++ b/lang/perl5/patches/patch-ca @@ -0,0 +1,21 @@ +$NetBSD: patch-ca,v 1.1 2004/04/12 02:51:22 jschauma Exp $ + +--- Configure.orig Fri Mar 26 10:34:43 2004 ++++ Configure Fri Mar 26 10:43:17 2004 +@@ -12495,7 +12495,15 @@ + ACAT(Cir,cus) + EOCP + $cppstdin $cppflags $cppminus <cpp_stuff.c >cpp_stuff.out 2>&1 +-if $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then ++# yuck, what a hack. ++# MIPSPro compiler/preprocessor behaves differently if invoked on ++# stdin vs file. Here we test for stdin, but lateron we use files. ++# So force it to work the way we know it does: ++if [ x"${OPSYS}" = x"IRIX" ]; then ++ echo "Hacking MIPSPro on file vs. stdin..." >&4 ++ echo "We know we can catify or stringify, separately or together!" ++ cpp_stuff=42 ++elif $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then + echo "Oh! Smells like ANSI's been here." >&4 + echo "We can catify or stringify, separately or together!" + cpp_stuff=42 |