diff options
Diffstat (limited to 'main/musl')
-rw-r--r-- | main/musl/APKBUILD | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/main/musl/APKBUILD b/main/musl/APKBUILD index 85cca6e498..46aeb01835 100644 --- a/main/musl/APKBUILD +++ b/main/musl/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Timo Teräs <timo.teras@iki.fi> pkgname=musl pkgver=1.1.22 -pkgrel=0 +pkgrel=1 pkgdesc="the musl c library (libc) implementation" url="http://www.musl-libc.org/" arch="all" @@ -62,19 +62,19 @@ build() { package() { cd "$builddir" - if [ "$BOOTSTRAP" = "nocc" ]; then - case "$CARCH" in - aarch64*) ARCH="aarch64" ;; - arm*) ARCH="arm" ;; - x86) ARCH="i386" ;; - x86_64) ARCH="x86_64" ;; - ppc) ARCH="powerpc" ;; - ppc64*) ARCH="powerpc64" ;; - s390*) ARCH="s390x" ;; - mips64*) ARCH="mips64" ;; - mips*) ARCH="mips" ;; - esac + case "$CARCH" in + aarch64*) ARCH="aarch64" ;; + arm*) ARCH="arm" ;; + x86) ARCH="i386" ;; + x86_64) ARCH="x86_64" ;; + ppc) ARCH="powerpc" ;; + ppc64*) ARCH="powerpc64" ;; + s390*) ARCH="s390x" ;; + mips64*) ARCH="mips64" ;; + mips*) ARCH="mips" ;; + esac + if [ "$BOOTSTRAP" = "nocc" ]; then make ARCH="$ARCH" prefix=/usr DESTDIR="$pkgdir" install-headers else make DESTDIR="$pkgdir" install @@ -87,7 +87,12 @@ package() { ln -sf "$LDSO" "$pkgdir"/lib/libc.musl-${CARCH}.so.1 ln -sf ../../lib/"$LDSO" "$pkgdir"/usr/lib/libc.so mkdir -p "$pkgdir"/usr/bin - ln -sf ../../lib/"$LDSO" "$pkgdir"/usr/bin/ldd + + cat >>"$pkgdir"/usr/bin/ldd <<-EOF + #!/bin/sh + exec /lib/ld-musl-$ARCH.so.1 --list -- "\$@" + EOF + chmod 755 "$pkgdir"/usr/bin/ldd fi # remove libintl.h, currently we don't want by default any NLS |