]> git.mxchange.org Git - flightgear.git/commitdiff
Added support for native Irix compilers via a script to hack the makefiles.
authorcurt <curt>
Tue, 9 Mar 1999 20:58:00 +0000 (20:58 +0000)
committercurt <curt>
Tue, 9 Mar 1999 20:58:00 +0000 (20:58 +0000)
README.Unix
irix-hack.pl [new file with mode: 0755]

index c86266ba10f1ae3e1120f865e689d7221bf1cd6f..12750810451187d01ab8d19903705b266ae9526e 100644 (file)
@@ -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 (executable)
index 0000000..a7a9c31
--- /dev/null
@@ -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";