Re: MACOSX_DEPLOYMENT_TARGET per architecture in XCode 2.2. How?
Re: MACOSX_DEPLOYMENT_TARGET per architecture in XCode 2.2. How?
- Subject: Re: MACOSX_DEPLOYMENT_TARGET per architecture in XCode 2.2. How?
- From: Gerben Wierda <email@hidden>
- Date: Mon, 7 Nov 2005 08:31:59 +0100
On Nov 7, 2005, at 01:19, Chris Espinosa wrote:
On Nov 6, 2005, at 1:48 PM, Gerben Wierda wrote:
Or in other words, "-mmacosx-version-min=10.2" and "-isysroot
/Developer/SDKs/MacOSX10.4u.sdk". That seems incompleet/contradictory
to me. Should I set SDKROOT_ppc as well? Anything else?
It's neither incomplete nor contradictory.
The -isysroot sets which API set you compile against and which library
set you link against. By using 10.4u you are stating that you intend
to use 10.4 features and/or to run on Intel.
The -mmacosx-version-min sets the earliest version your application
should launch on. With this setting, your application will not launch
on 10.1, but will launch on 10.2.0 or later. Because you used a later
SDK, though, it is possible your application will use system calls
that are unavailable in 10.2 or 10.3, so it is your responsibility to
check all such calls before making them.
This will be successful for Objective-C. Be aware that 10.2.8 does
not support the C++ runtime for gcc 4.0, so this configuration would
not work for C++ code; either set youu minimum deployment version to
10.3 (launch on 10.3.9) or use the gcc 3.3 compiler.
Thanks for the answer.
Suppose I set SDKROOT_ppc to the 10.2 version, would the app still use
the 10.3 version on a 10.3 system and 10.4 on a 10.4 system? Or would
the project become statically linked and would I get the bugs still in
the 10.2 SDK when running on 10.3?
G
_______________________________________________
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