Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linux/x86 to darwin/ppc cross compiler?



Those are the same things I had trouble with when I tried it.

As far as the headers go, one way is to set up another install of the standard gcc and bintools on linux in parallel.

Then you use the -b flag, so if you install the alternative gcc in /usr/local/i686-private-linux (for example), you'd do go "make GCC=i686-private-linux-gcc"...

Then put ALL the apple headers in /usr/local/i686-private-linux/include...but even then it probably wouldn't work...if you try and build gcc hosted on linux with Darwin's sys/types.h, I doubt you'd get far.

One thing I figured out that you may not have run into yet was with the Makefiles...take a look in /Developer/Makefiles. Its a quite complicated, and clever, set of nested Makefiles. The GNU build system on Linux doesn't really do ANYTHING like this...but BSD does! For this reason, although I've never tested it, it should be a LOT easier to build Darwin (or just a cross toolchain) on *BSD than on Linux. The headers will be a LOT closer also.


--

Nick Lauland
University of Texas at Austin
Desktop Support Consultant
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: linux/x86 to darwin/ppc cross compiler? (From: Dara Hazeghi <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.