Re: Cross-platform & Cross-SDK
Re: Cross-platform & Cross-SDK
- Subject: Re: Cross-platform & Cross-SDK
- From: Ladd Van Tol <email@hidden>
- Date: Mon, 4 Jul 2005 19:50:08 -0700
On Jul 4, 2005, at 4:15 PM, Daniel Hazelbaker wrote: I have a number of frameworks and an application that I am trying to compile for 10.4 ppc/i386. What I am running into is that the only way I can see to do this without having a separate target for each architecture is to use gcc 4.0. The problem with gcc 4.0 is that it makes applications incapable of running on anything prior to 10.4 (it seems to link in a math library that doesn't exist on < 10.4). What I would like to do is have the i386 build use gcc 4.0 and the 10.4 SDK and have the ppc build use gcc 3.3 and the 10.3 SDK.
I would like this capability too. It seems to be hard or undocumented.
Fortunately, it's not quite as bad as it first appears. GCC 4.0 built products should run on 10.3.9 and above, as they shipped the needed dylibs with that update. We have a lot of machines that will likely still be on 10.3 next year when I need the i386 binary ready for the intel machines, so I need it to be able to run on 10.3 machines running a ppc chip and 10.4 on machines running ppc/i386. Any suggestions for how to pull this off without having separate targets for each architecture? (I have tried per-architecture settings, but there doesn't seem to be a GCC_VERSION_$(ARCH) setting available)
The Apple guys might know more, but it seems that you would have to do separate targets. Potentially you could glue the resulting executables back together with lipo, but this seems like a pain in the ass. Fortunately, if you can get your users to upgrade to 10.3.9, you should be able to target the 10.4 Universal SDK, but avoid 10.4-specific APIs. This should let you get what you want.
- Ladd
|
_______________________________________________
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