Re: 64-bit, 10.5/10.4, SDK build settings
Re: 64-bit, 10.5/10.4, SDK build settings
- Subject: Re: 64-bit, 10.5/10.4, SDK build settings
- From: Clark Cox <email@hidden>
- Date: Tue, 2 Jun 2009 13:54:28 -0700
On Tue, Jun 2, 2009 at 11:13 AM, Alex Sheh <email@hidden> wrote:
> Thanks for the replies, Shawn.
>
> I was considering using the below settings. This way, on ppc and x86, I wouldn't have to put additional runtime checks for function availability (since the ppc and x86 binaries would be building against 10.4 as well as deploying on 10.4).
This all depends on what you want to do. If you will be using any
10.5-only features, then you must link against the 10.5 SDK.
> SDKROOT = macosx10.4
> SDKROOT[arch=ppc64] = macosx10.5
> SDKROOT[arch=x86_64] = macosx10.5
> MACOSX_DEPLOYMENT_TARGET = 10.4
> MACOSX_DEPLOYMENT_TARGET[arch=ppc64] = 10.5
> MACOSX_DEPLOYMENT_TARGET[arch=x86_64] = 10.5
>
> But with respect to the below settings, doesn't this mean that on ppc64 and x86_64, the software would only run on 10.5 or later? We need to support 10.4 or later on ppc64 and x86_64.
Not possible. You will not be able to run any 64-bit Cocoa
applications on 10.4, no matter what settings you use.
There is really only one decision you need to make:
Will you be using any 10.5-only functionality in your application?
If "Yes", use these settings, and check for the 10.5 functionality at runtime:
SDKROOT = macosx10.5
MACOSX_DEPLOYMENT_TARGET = 10.5
MACOSX_DEPLOYMENT_TARGET[arch=ppc] = 10.4
MACOSX_DEPLOYMENT_TARGET[arch=i386] = 10.4
(i.e. *everything* uses the 10.5 SDK, and only the 32-bit slices have
a 10.4 deployment target)
If "No", use these settings:
SDKROOT = macosx10.5
SDKROOT[arch=ppc] = macosx10.4
SDKROOT[arch=i386] = macosx10.4
MACOSX_DEPLOYMENT_TARGET = 10.5
MACOSX_DEPLOYMENT_TARGET[arch=ppc] = 10.4
MACOSX_DEPLOYMENT_TARGET[arch=i386] = 10.4
(i.e. the 64-bit slices use the 10.5 SDK, while the 32-bit slices use
the 10.4 SDK)
Either way, there is never a reason to set the deployment target for
the 64-bit slices to anything earlier than 10.5.
--
Clark S. Cox III
email@hidden
_______________________________________________
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: | |
| >64-bit, 10.5/10.4, SDK build settings (From: Alex Sheh <email@hidden>) |
| >Re: 64-bit, 10.5/10.4, SDK build settings (From: Ken Thomases <email@hidden>) |
| >RE: 64-bit, 10.5/10.4, SDK build settings (From: Alex Sheh <email@hidden>) |
| >Re: 64-bit, 10.5/10.4, SDK build settings (From: Shawn Erickson <email@hidden>) |
| >Re: 64-bit, 10.5/10.4, SDK build settings (From: Shawn Erickson <email@hidden>) |
| >RE: 64-bit, 10.5/10.4, SDK build settings (From: Alex Sheh <email@hidden>) |