From 190442d76ebdd77626d03b6aad31a9bee20b2f9c Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 16 Dec 2020 14:09:22 -0800 Subject: [PATCH] macos-setup: set SDKROOT when running xcrun. That lets it find the right SDK path if you're not using the default SDK. --- tools/macos-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/macos-setup.sh b/tools/macos-setup.sh index f06ec90f01..98c7c42d87 100755 --- a/tools/macos-setup.sh +++ b/tools/macos-setup.sh @@ -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