crosscompiler tool chain from i386-linux to powerpc-apple and others

Dan Kegel dank@kegel.com
Fri Aug 15 20:26:00 GMT 2003


Bill Gatliff wrote:
> Check out Dan Kegel's crosstool script.  Search the archives.
> 
> I don't know that he supports your targets directly, but he's the 
> closest I've seen and I bet that since you have access to those 
> machines, the two of you could work something out.
> 
> /me ducks after volunteering Dan for more scripting...

Bill, you bastard! :-)

> Ricardo Scachetti Pereira wrote:
>>    The targets I'm aiming at are: powerpc-apple-darwin (MacOS X), 
>> sparc-sun-solaris, i386-pc-solaris, i386-pc-freebsd2.

Hi Ricardo!
My crosstool script, http://kegel.com/crosstool,
will probably not help because it targets linux, not
MacOSX, Solaris, or FreeBSD.   A

But I bet there are plenty of recipes out there on the net
for how to do it.  The main thing you need to know is you
need to copy the system include files and some libraries
from the target systems onto your build system (maybe you already knew that).

Google can find a few recipes, e.g. here are a few for
targeting solaris:
http://is.rice.edu/~welsh/cross-compiler/
http://gcc.gnu.org/ml/gcc/2002-04/msg00289.html

Once you get one working, the rest shouldn't be too bad.
Good luck!
- Dan

-- 
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list