diff options
-rw-r--r-- | main/musl/APKBUILD | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/main/musl/APKBUILD b/main/musl/APKBUILD index d2f3a82692..d7a77ef2d0 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.16 -pkgrel=2 +pkgrel=3 pkgdesc="the musl c library (libc) implementation" url="http://www.musl-libc.org/" arch="all" @@ -115,14 +115,17 @@ utils() { compat() { pkgdesc="compatibility libraries for glibc" + mkdir -p "$subpkgdir"/lib case "$CARCH" in arm*) _ld="ld-linux-armhf.so.3" ;; x86) _ld="ld-linux.so.2" ;; - x86_64) _ld="ld-linux-x86-64.so.2" ;; + x86_64) _ld="ld-linux-x86-64.so.2" + # go precompiled binary uses /lib64/ld-linux-x86-64.so.2 + # so we add a symlink + ln -s lib "$subpkgdir"/lib64 + ;; mips*) _ld="ld.so.1" ;; esac - - mkdir -p "$subpkgdir"/lib ln -sf "/lib/libc.musl-${CARCH}.so.1" "$subpkgdir/lib/$_ld" for i in libc.so.6 libcrypt.so.1 libm.so.6 libpthread.so.0 librt.so.1 libutil.so.1; do |