Re: multi-platform binaries...
Re: multi-platform binaries...
- Subject: Re: multi-platform binaries...
- From: Eric Albert <email@hidden>
- Date: Thu, 9 Jun 2005 01:13:36 -0700
On Jun 7, 2005, at 6:50 PM, Markus Hitter wrote:
Am 08.06.2005 um 01:02 schrieb Matthew Weinstein:
How do I use xcode(2.1) to do the equivalent of ./configure;etc. to
produce a "fat" binary?
Assuming Xcode does it the same way as Darwin, pass "-arch ppc -arch
386" to gcc. No need to fire up Xcode to do command line compilations.
For the archives, this isn't quite right. You'd pass "-arch ppc -arch
i386" to gcc, and also to ld if you use ld for linking.
Additionally, if your configure script detects the endianness of the
host system via AC_C_BIGENDIAN or related means, you should change your
code to use #if __BIG_ENDIAN__ or #if __LITTLE_ENDIAN__ instead, or
else you'll compile the wrong code for the architecture you aren't
configuring on.
Hope this helps,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden