Hans-Christoph Steiner wrote:
On Dec 16, 2009, at 4:31 AM, IOhannes m zmoelnig wrote:
IOhannes m zmoelnig wrote:
if we can make it compile for 10.6 and that would mean that it won't build on/for 10.3 no more, then i guess that we should do this.
as long as it doesn't buld on 10.6 and we only know that it won't work on 10.3, this does not sound very compelling to me.
so now we do know that it compiles on 10.6 if the mmacosx-version-min is at least set to 10.4, this changes things a bit for me.
does it work out-of-the-box if we leave out the -mmacosx-version-min alltogether?
if not, i guess we should still omit this flag, and instead use the MACOSX_DEPLOYMENT_TARGET envvariable.
this way there is no need to do any quirks on the configure side.
The MACOSX_DEPLOYMENT_TARGET envvariable has been superceeded by the mmacosx-version-min flag. So either use -mmacosx-version-min or nothing, IMHO.
i have found "rumours" about that, but nothing definite. the manpage for a g++ on 10.5 (4.0.1) says:
<snip> -mmacosx-version-min=version The earliest version of MacOS X that this executable will run on is version. Typical values of version include 10.1, 10.2, and 10.3.9. This value can also be set with the MACOSX_DEPLOYMENT_TARGET environment variable. If both the command-line option is specified and the environment variable is set, the command-line option will take precedence. </snip>
there is no mention of deprecation. googling around gives me some hits, where people ask whether it is deprecated or not, and some people then shouting "NO". this is not really the kind of information based on which i want to make decisions.
searching the apple website i only find: http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptu... which tells me to use the environment variables if i use Makefiles and want the same effect as setting the deplyoment OS version in XCode.
the good thing about MACOSX_DEPLOYMENT_TARGET is that it doesn't interfere with compilers that don't support it. so you could just set it, on each and every platform and don't care about it any more. (unlike compiler switches, which a chosen compailer might accept or not at all)
fgmadsr IOhannes