summaryrefslogtreecommitdiff
path: root/helper.sh
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-10-12 16:47:06 -1000
committerSam Bingner <sam@bingner.com>2018-10-12 16:47:06 -1000
commit24f6d59354df69788c96f26e8c046a50c383c886 (patch)
treeed2343230d45a634b15398dfa7a7e2c67a960aba /helper.sh
parent330f4f07f97d829f6337de5b20efb19e58bab319 (diff)
Build environment changes
Diffstat (limited to 'helper.sh')
-rwxr-xr-xhelper.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/helper.sh b/helper.sh
index 0c98e39f5..f67ea5168 100755
--- a/helper.sh
+++ b/helper.sh
@@ -2,7 +2,7 @@
source "${PKG_BASE}/architect.sh"
-export PKG_ROOT=$("${PKG_TARG}-gcc" -dumpspecs | grep '%{isysroot' | sed -e 's/.*%{isysroot\*:\([^}]*\)}.*/\1/; s/;:/\n/g' | sed -e 's/^-syslibroot //' | tail -n 1)
+export PKG_ROOT=$(xcrun -sdk iphoneos --show-sdk-path)
export PKG_CCPF=$("${PKG_TARG}-gcc" -v 2>&1 | grep -- --prefix | sed -e 's/.*--prefix=\([^ ]*\).*/\1/')
source "${PKG_BASE}/folders.sh"
@@ -13,7 +13,7 @@ if [[ ${PKG_NAME} != @(-|:*) ]]; then
export PKG_WORK=$(PKG_WORK_ "${PKG_NAME}")
export PKG_DEST=$(PKG_DEST_ "${PKG_NAME}")
- export PKG_STAT=${PKG_BASE}/stat/${PKG_ARCH}/${PKG_NAME}
+ export PKG_STAT=${PKG_BASE}/stat/${PKG_ARCH}/${PKG_CFTARG}/${PKG_NAME}
export PKG_DATA=$(echo "${PKG_BASE}"/data/"${PKG_NAME}"?(_))
export PKG_RVSN=$(cat "${PKG_STAT}/dest-ver" 2>/dev/null)