mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-20 21:48:34 +00:00
18 lines
540 B
Plaintext
18 lines
540 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
|
|
pushd $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
|
|
popd
|
|
}
|