mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-28 15:01:22 +00:00
18 lines
547 B
Plaintext
18 lines
547 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 -
|
|
}
|