• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: multi-platform binaries...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >multi-platform binaries... (From: Matthew Weinstein <email@hidden>)
 >Re: multi-platform binaries... (From: Markus Hitter <email@hidden>)

  • Prev by Date: Xcode 2.1 CVS access non-functional.
  • Next by Date: Re: Linking with static sqlite 3 library
  • Previous by thread: Re: multi-platform binaries...
  • Next by thread: Lost Architectures in 2.1
  • Index(es):
    • Date
    • Thread