cross-mipsel-linux-musl: fix ld-musl*.so* symlinks

Long standing bug that led to an absolute symlink pointing to
the host /usr/lib/libc.so instead of the cross base libc.so.

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-05-07 18:53:10 +02:00
parent 9575004f27
commit 9e1db28d09
No known key found for this signature in database
GPG key ID: DE55AD8DBEBB4EE8

View file

@ -12,7 +12,7 @@ _sysroot="/usr/${_triplet}"
pkgname=cross-${_triplet}
version=0.30
revision=2
revision=3
short_desc="Cross toolchain for MIPS32r2 LE softfloat target (musl)"
maintainer="Juan RP <xtraeme@voidlinux.org>"
homepage="https://www.voidlinux.org/"
@ -245,9 +245,9 @@ do_install() {
# Remove useless headers.
rm -rf ${DESTDIR}/usr/lib/gcc/${_triplet}/*/include-fixed
# Make ld-musl.so symlinks relative.
ln -sf libc.so ${DESTDIR}/${_sysroot}/usr/lib/ld-musl-mips.so.1
ln -sf libc.so ${DESTDIR}/${_sysroot}/usr/lib/ld-musl-mips-sf.so.1
# Make ld-musl*.so.1 symlinks relative.
ln -sf libc.so ${DESTDIR}/${_sysroot}/usr/lib/ld-musl-mipsel.so.1
ln -sf libc.so ${DESTDIR}/${_sysroot}/usr/lib/ld-musl-mipsel-sf.so.1
# symlinks for gnarl and gnat shared libraries
_majorver=${_gcc_version%.*.*}