macos-setup: set SDKROOT when running xcrun.

That lets it find the right SDK path if you're not using the default
SDK.
This commit is contained in:
Guy Harris 2020-12-16 14:09:22 -08:00
parent bf45e8c3f1
commit 190442d76e
1 changed files with 1 additions and 1 deletions

View File

@ -791,7 +791,7 @@ set -x
# will be set to /usr/include (in those older versions of the
# developer tools, there is a /usr/include directory).
#
includedir=`xcrun --show-sdk-path 2>/dev/null`/usr/include
includedir=`SDKROOT="$SDKPATH" xcrun --show-sdk-path 2>/dev/null`/usr/include
if [ ! -f ./configure ]; then
LIBTOOLIZE=glibtoolize ./autogen.sh
fi