darwin-cross: cleanup, fix 'as' handling... hope this works on other distros too...

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-05-21 15:23:28 +02:00
parent 42eaf9d2be
commit e97c492fee

View File

@ -23,5 +23,17 @@
. config/options $1
tar -xzf "${PKG_BUILD}/darwin-cross.tar.gz" -C "${PKG_BUILD}"
mv "${PKG_BUILD}/darwin-cross/"* "${PKG_BUILD}"
# extract toolchain
tar -xzf $PKG_BUILD/darwin-cross.tar.gz -C $PKG_BUILD
# move toolchain to a proper location
mv $PKG_BUILD/darwin-cross/* $PKG_BUILD
# cleanup
rm -rf $PKG_BUILD/darwin-cross/
rm -rf $PKG_BUILD/darwin-cross.tar.gz
rm -rf $PKG_BUILD/install_darwin-cross.sh
# fix 'as'
rm -rf $PKG_BUILD/i386-apple-darwin8/bin/as
ln -sf $ROOT/$PKG_BUILD/libexec/10.4/as/i386/as $PKG_BUILD/i386-apple-darwin8/bin/as