From: grif@ucrengr.ucr.edu (Michael Griffith) Subject: Re: Cross compiling on sun? Date: 14 Feb 1993 19:23:27 GMT
In article <1lg7oiINNmd4@senator-bedfellow.MIT.EDU> ludger.kunz@fernuni-hagen.de (Ludger Kunz) writes:
>Hi,
>is there anybody who has set GNU-CC for compiling Linux-programs on
>a SUN?
>
It is not too tough. This is what I did (from memory):
1) Downloaded gas and built it for the 386.
2) Downloaded gcc and did:
./configure --target=linux --host=sun4 --prefix=/path/mybuildir --use_gnu_as
make bootstrap
make install
I don't think it took too much playing with. I was also using
it to compile for a 386 emulator that we have running on the Suns, so
making it work as a Linux cross-compiler was just an added benefit.
Because I didn't need it seriously, I didn't bother putting all of the
Linux header files and libraries on the Sun. In fact, it didn't even do
the linking on the Sun, but the program ran fine after taking all of the .o
files to the Linux box and linking them up.
__
Michael A. Griffith
grif@cs.ucr.edu