Set MACOSX_DEPLOYMENT_TARGET properly per-architecture. Stop incorrectly targeting Mac OS X 10.5 for 64-bit builds by default. b=583318 r=ted a=blocking-final+

This commit is contained in:
Josh Aas 2010-08-20 18:10:15 -04:00
parent 852158a953
commit 1092fc2cec

View File

@ -1088,10 +1088,20 @@ case "$target" in
dnl Use the specified value
export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET
AC_DEFINE_UNQUOTED(__ENVIRONMENT_MAC_OS_X_VERION_MIN_REQUIRED__,$_MACOSX_DEPLOYMENT_TARGET)
elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then
else
dnl No value specified on the command line or in the environment,
dnl use architecture minimum.
export MACOSX_DEPLOYMENT_TARGET=10.5
case "${target_cpu}" in
ppc*)
export MACOSX_DEPLOYMENT_TARGET=10.5
;;
i*86)
export MACOSX_DEPLOYMENT_TARGET=10.5
;;
x86_64)
export MACOSX_DEPLOYMENT_TARGET=10.6
;;
esac
fi
;;
esac