• 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
Universal binary command line build for different SDKs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Universal binary command line build for different SDKs


  • Subject: Universal binary command line build for different SDKs
  • From: Mike Cooper <email@hidden>
  • Date: Thu, 20 Jul 2006 15:27:57 -0700


We've got a large app which uses autoconf/make on multiple Unix/Linux/etc platforms and are trying to build Universal binaries on Mac now.


We need to build for MacOS 10.3 for PPC and MacOS 10.4 for i386. What cc and ld command line options do we use to accomplish this?

This URL:

http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/index.html

says to use

CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"

But this just builds a 10.4 universal and we need to target 10.3 for ppc for backwards compat.

Is there a means to specify in a single cc invocation per .c file to build a .o file for both 10.3/PPC and 10.4/i386? Or do we need to invoke cc twice for each .c file - once with the 10.3/PPC options based on the above and once again for the 10.4/i386 options? The later is going to wreck havoc with our existing autoconf/make system.

Thanks in advance.

	mike

_______________________________________________
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


  • Follow-Ups:
    • Re: Universal binary command line build for different SDKs
      • From: Syd Polk <email@hidden>
  • Prev by Date: Re: [ANN] Xcode + Leopard at WWDC this year
  • Next by Date: Re: Universal binary command line build for different SDKs
  • Previous by thread: Re: Building a library using as universal for 10.3.9 ppc from
  • Next by thread: Re: Universal binary command line build for different SDKs
  • Index(es):
    • Date
    • Thread