Ticket #56669: configure.ac.diff
File configure.ac.diff, 901 bytes (added by grumpybozo (Bill Cole), 6 years ago) |
---|
-
configure.ac
old new 845 845 if echo $build_os | grep darwin > /dev/null; then 846 846 sdk_p=`xcode-select -print-path`; 847 847 sdk_v="$( /usr/bin/xcrun --show-sdk-version )"; 848 # xcrun only got that option in 10.7 849 if test -z "$sdk_v" ; then 850 sdk_c="10.6" 851 sdk_v="10.6" 852 fi 853 SYSROOT="$( find ${sdk_p} -name MacOSX${sdk_v}.sdk )" 848 854 case $sdk_v in 849 855 10.9|10.8) sdk_c="10.7";; 850 856 10.11|10.10|*) sdk_c="10.10";; 851 857 esac 852 858 export MACOSX_DEPLOYMENT_TARGET="${sdk_c}"; 853 export CFLAGS="$CFLAGS -mmacosx-version-min=${sdk_c} -isysroot ${ sdk_p}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${sdk_v}.sdk";859 export CFLAGS="$CFLAGS -mmacosx-version-min=${sdk_c} -isysroot ${SYSROOT}" 854 860 fi 855 861 856 862 AC_DEFINE([SYSCONFDIR], [sysconfdir], [System configuration dir])