Mailing Lists: Apple Mailing Lists

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

Universal binary command line build for different SDKs




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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to 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.