Ticket #56669: configure.ac.diff

File configure.ac.diff, 901 bytes (added by grumpybozo (Bill Cole), 6 years ago)

Patch to configure.ac

  • configure.ac

    old new  
    845845if echo $build_os | grep darwin > /dev/null; then
    846846  sdk_p=`xcode-select -print-path`;
    847847  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 )"
    848854  case $sdk_v in
    849855       10.9|10.8)   sdk_c="10.7";;
    850856       10.11|10.10|*) sdk_c="10.10";;
    851857  esac
    852858  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}"
    854860fi
    855861
    856862AC_DEFINE([SYSCONFDIR], [sysconfdir], [System configuration dir])