From 4dacb118c01d70b1bb4780021d641e8eda634be2 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 9 Mar 1999 20:58:00 +0000 Subject: [PATCH] Added support for native Irix compilers via a script to hack the makefiles. --- README.Unix | 15 +++++++++++++++ irix-hack.pl | 16 ++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100755 irix-hack.pl diff --git a/README.Unix b/README.Unix index c86266ba1..127508104 100644 --- a/README.Unix +++ b/README.Unix @@ -63,3 +63,18 @@ following (assuming sh syntax): CC=cc CXX=CC CFLAGS=-Xcpluscomm ./configure +Then (and this step is *VERY* important for your success) run the following +command: + + find . -name Makefile -exec irix-hack.pl {} \; + +Note, you should make sure you have perl installed on your system. The +"irix-hack.pl" script assumes that perl is located in /usr/bin/perl so +if this isn't the proper location on your system, change it in the first +line of "irix-hack.pl" before running the above command. One way to see +if perl is on your system (and determine where) is to run: + + which perl + +Perl can be installed from "eoe.sw.gifts_perl" or can be fetched and +built from the net. diff --git a/irix-hack.pl b/irix-hack.pl new file mode 100755 index 000000000..a7a9c3132 --- /dev/null +++ b/irix-hack.pl @@ -0,0 +1,16 @@ +#!/usr/bin/perl + +$file = shift(@ARGV); + +print "Fixing $file\n"; + +open(IN, "<$file") || die "cannot open $file for reading\n"; +open(OUT, ">$file.new") || die "cannot open $file.new for writting\n"; + +while () { + s/^AR = ar$/AR = CC -ar/; + s/\$\(AR\) cru /\$\(AR\) -o /; + print OUT $_; +} + +rename("$file.new", "$file") || die "cannot rename $file.new to $file\n";