Universal binary command line build for different SDKs
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