From 4490f4dbdb9685481070da9dacb9b27f84aad8aa Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 7 May 2022 13:49:48 +0100 Subject: fixed postinstall running correctly --- xi_profile.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xi_profile.sh b/xi_profile.sh index 327c294..78bd6f4 100644 --- a/xi_profile.sh +++ b/xi_profile.sh @@ -3,6 +3,10 @@ export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/tools/sbin export LIBRARY_PATH=/lib:/usr/lib/:/tools/lib:/tools/lib64 +export CC="clang" +export CXX="clang++" +export LD="clang" + export JOBS=$(grep "processor" /proc/cpuinfo | wc -l) export HOME=/root @@ -55,8 +59,8 @@ for xibuild in $PKG_NAME.xibuild $(ls *.xibuild | grep -v "$PKG_NAME.xibuild"); echo "adding postinstall" POST_DIR=$PKG_DEST/var/lib/xipkg/postinstall mkdir -p $POST_DIR - cat /build/$PKG_NAME.xibuild > $POST_DIR/$PKG_NAME.sh - echo "" >> $POST_DIR/$PKG_NAME.sh + cat ./$PKG_NAME.xibuild > $POST_DIR/$PKG_NAME.sh + echo >> $POST_DIR/$PKG_NAME.sh echo "postinstall" >> $POST_DIR/$PKG_NAME.sh else echo "no postinstall" -- cgit v1.2.1