dslm4515 / Musl-LFS

Linux From Scratch using Musl as Libc
GNU General Public License v3.0
167 stars 21 forks source link

Fixed musl symlink in cross tools #49

Closed owl4ce closed 3 years ago

owl4ce commented 3 years ago

A little fix

owl4ce commented 3 years ago

Oh sorry, even commits from my own fork are included. I just want to update the cross-tools's symlink. I'll close this PR.

owl4ce commented 3 years ago

@dslm4515 Hi, apply this first commit.

# Export host's arch variable.
case $(uname -m) in
    x86_64)  export ARCH="x86_64"
    ;;
    i686)    export ARCH="i386"
    ;;
    arm*)    export ARCH="arm"
    ;;
    aarch64) export ARCH="aarch64"
    ;;
esac

# Fix a broken libc symlink.
ln -sfv libc.so /cross-tools/lib/ld-musl-${ARCH}.so.1

unset ARCH