1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-27 09:58:35 +00:00
morpheus/cross-scripts/crossmusl
sin 5ffd49a86d We can build with dash too now
Also rename pkgs/arch-rootfs to pkgs/emul.

The create-bootable script still needs to be fixed
to work with dash.
2014-02-14 10:58:17 +00:00

18 lines
537 B
Plaintext

url=$mirror/crossx86-x86_64-linux-musl-0.9.15.tar.xz
fetch() {
wget -c $url -O src/crossx86-x86_64-linux-musl-0.9.15.tar.xz
}
install() {
tar xJf src/crossx86-x86_64-linux-musl-0.9.15.tar.xz -C $root/opt/cross
mv $root/opt/cross/x86_64-linux-musl/x86_64-linux-musl/lib64/* $root/opt/cross/x86_64-linux-musl/x86_64-linux-musl/lib
cd $root/bin
targets="ar as c++ g++ gcc ld ld.bfd nm objcopy objdump ranlib strip"
for t in $targets; do
ln -sf /opt/cross/x86_64-linux-musl/bin/x86_64-linux-musl-$t $t
done
ln -sf gcc cc
cd -
}