Added support for native Irix compilers via a script to hack the makefiles.
This commit is contained in:
parent
b9c123361b
commit
4dacb118c0
2 changed files with 31 additions and 0 deletions
15
README.Unix
15
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.
|
||||
|
|
16
irix-hack.pl
Executable file
16
irix-hack.pl
Executable file
|
@ -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 (<IN>) {
|
||||
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";
|
Loading…
Reference in a new issue