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?



I must confess it has been a long time since I built a cross compiler, but
IIRC you have to put the target includes (and libraries) in a directory
like $prefix/<arch>/{include,lib}
such as /usr/local/sparc-sun-solaris2.8/include
/usr/local/ppc-Darwin-6.2/include

Then the cross compile build will pick them up from there AND any cross
compiles done later will also. Same for production cross links.

--
Jerry Pendergraft email@hidden
Endocardial Solutions voice: 651-523-6935
1350 Energy Lane, Suite 110 fax: 651-644-7897
St Paul, MN 55108-5254

On Tue, 10 Dec 2002, Nick Lauland wrote:

> 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.
_______________________________________________
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: Nick Lauland <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.