summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xi_profile.sh8
1 files 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"