1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-30 03:31:19 +00:00
morpheus/pkgs/crossmusl

15 lines
499 B
Plaintext
Raw Normal View History

2014-02-28 21:19:02 +00:00
v="0.9.15"
url="$mirror/crossx86-$arch-linux-musl-$v.tar.xz"
build: prepare_root
2013-09-23 18:17:14 +00:00
targets="ar as c++ g++ gcc ld ld.bfd nm objcopy objdump ranlib strip"
2014-02-27 12:41:37 +00:00
cd src
2014-02-28 21:19:02 +00:00
cp -r $arch-linux-musl "$root/opt/cross/"
2014-02-27 12:41:37 +00:00
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"
2013-09-23 18:17:14 +00:00
done
ln -sf gcc "$root/bin/cc"