mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-28 15:01:22 +00:00
15 lines
497 B
Plaintext
15 lines
497 B
Plaintext
v="0.9.15"
|
|
url="$mirror/crossx86-$arch-linux-musl-$v.tar.xz"
|
|
|
|
build: prepare_root
|
|
targets="ar as c++ g++ gcc ld ld.bfd nm objcopy objdump ranlib strip"
|
|
cd src
|
|
cp -r $arch-linux-musl "$root/opt/cross/"
|
|
if test "$arch" = "x86_64"; then
|
|
mv "$root/opt/cross/$arch-linux-musl/$arch-linux-musl/lib64"/* "$root/opt/cross/$arch-linux-musl/$arch-linux-musl/lib"
|
|
fi
|
|
for t in ${targets}; do
|
|
ln -sf ../opt/cross/$arch-linux-musl/bin/$arch-linux-musl-$t $root/bin/$t
|
|
done
|
|
ln -sf gcc ${root}/bin/cc
|