• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [SOT: command line, not Xcode] Setting MACOSX_DEPLOYMENT_TARGET default to 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: [SOT: command line, not Xcode] Setting MACOSX_DEPLOYMENT_TARGET default to 10.4
      • From: David Goldsmith <email@hidden>
References: 
 >[SOT: command line, not Xcode] Setting MACOSX_DEPLOYMENT_TARGET default to 10.4 (From: David Goldsmith <email@hidden>)
 >Re: [SOT: command line, not Xcode] Setting MACOSX_DEPLOYMENT_TARGET default to 10.4 (From: Fritz Anderson <email@hidden>)
 >Re: [SOT: command line, not Xcode] Setting MACOSX_DEPLOYMENT_TARGET default to 10.4 (From: Peter O'Gorman <email@hidden>)

  • Prev by Date: Re: Re[2]: Compiling 64-bit
  • Next by Date: Re: [SOT: command line, not Xcode] Setting MACOSX_DEPLOYMENT_TARGET default to 10.4
  • Previous by thread: Re: [SOT: command line, not Xcode] Setting MACOSX_DEPLOYMENT_TARGET default to 10.4
  • Next by thread: Re: [SOT: command line, not Xcode] Setting MACOSX_DEPLOYMENT_TARGET default to 10.4
  • Index(es):
    • Date
    • Thread