summaryrefslogtreecommitdiff
path: root/helper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'helper.sh')
-rwxr-xr-xhelper.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper.sh b/helper.sh
index 0c8953b92..44beaffc1 100755
--- a/helper.sh
+++ b/helper.sh
@@ -4,7 +4,7 @@ source "${PKG_BASE}/architect.sh"
export FAKEROOT="fakeroot -i \"${PKG_BASE}/.fakeroot\" -s \"${PKG_BASE}/.fakeroot\""
-export PKG_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk
+export PKG_ROOT="$(xcrun -sdk ${PKG_SDK} --show-sdk-path)"
export PKG_CCPF=$("${PKG_TARG}-gcc" -v 2>&1 | grep -- --prefix | sed -e 's/.*--prefix=\([^ ]*\).*/\1/')
source "${PKG_BASE}/folders.sh"