morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus.git
Log | Files | Refs | Submodules | README | LICENSE

commit 1b6193915bc5ac768c8a6b53b3d9cfb6e69f69d3
parent 9f76225185a6783b8726d02d32f4af27281cb329
Author: sin <sin@2f30.org>
Date:   Mon Sep 23 19:17:14 +0100

Simplify crossmusl

Diffstat:
pkgs/crossmusl | 16++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/pkgs/crossmusl b/pkgs/crossmusl @@ -6,19 +6,11 @@ fetch() { install() { tar xJf src/crossx86-x86_64-linux-musl-0.9.11.tar.xz -C $root/devel - pushd $root/devel/x86_64-linux-musl/bin - for i in *; do - if [ -L $i ]; then - continue - fi - link=$(echo $i | sed 's/x86_64-linux-musl-//g') - pushd $root/bin - unlink $link &>/dev/null - ln -s /devel/x86_64-linux-musl/bin/$i $link - popd - done - popd pushd $root/bin + targets="ar as c++ g++ gcc ld ld.bfd nm objcopy objdump ranlib strip" + for t in $targets; do + ln -s /devel/x86_64-linux-musl/x86_64-linux-musl/bin/$t $t + done ln -s gcc cc popd }