Re: [SOT: command line, not Xcode] Setting MACOSX_DEPLOYMENT_TARGET default to 10.4
Re: [SOT: command line, not Xcode] Setting MACOSX_DEPLOYMENT_TARGET default to 10.4
- Subject: Re: [SOT: command line, not Xcode] Setting MACOSX_DEPLOYMENT_TARGET default to 10.4
- From: Chris Hanson <email@hidden>
- Date: Wed, 13 Jun 2007 14:46:41 -0700
On Jun 13, 2007, at 1:44 PM, Peter O'Gorman wrote:
use -mmacosx-version-min=10.4 in CFLAGS and -
Wl,macosx_version_min=10.4 in LDFLAGS etc to get the same effect.
There was a recent commit to gcc to change the default to the
current system version, but you won't see that on 10.4...
This is the correct approach. You need to pass -mmacosx-version-
min=10.4 to both the compiler and the linker to get the same effect as
setting the MACOSX_DEPLOYMENT_TARGET build setting in Xcode. (The "-
Wl,foo=bar" syntax above is how you pass the linker option "-foo=bar"
to the linker via the compiler.)
I think MACOSX_DEPLOYMENT_TARGET is deprecated.
If you're referring to the Xcode build setting of that name, it is not
deprecated. It's more important than ever to distinguish the minimum
version of Mac OS X that you want to run on (via
MACOSX_DEPLOYMENT_TARGET) as well as the version of the overall Mac OS
X API that you wish to build against (via the SDK you use).
-- Chris
_______________________________________________
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