summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/gcompat/APKBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/user/gcompat/APKBUILD b/user/gcompat/APKBUILD
index 3c18e3891..f5cde0815 100644
--- a/user/gcompat/APKBUILD
+++ b/user/gcompat/APKBUILD
@@ -14,11 +14,13 @@ source="https://distfiles.adelielinux.org/source/gcompat/$pkgname-$pkgver.tar.xz
no-utmp.patch
"
+_link_arch=$CARCH
case "$CARCH" in
armel) _ld="ld-linux.so.3" ;;
armhf | armv7) _ld="ld-linux-armhf.so.3" ;;
aarch64) _ld="ld-linux-aarch64.so.1" ;;
-x86|pmmx|i528) _ld="ld-linux.so.2" ;;
+x86) _ld="ld-linux.so.2" ;;
+pmmx) _ld="ld-linux.so.2" _link_arch=i386;;
x86_64) _ld="ld-linux-x86-64.so.2" ;;
mips* | ppc | s390*) _ld="ld.so.1" ;;
ppc64le) _ld="ld64.so.2" ;;
@@ -27,12 +29,12 @@ esac
build() {
cd "$builddir"
- make LINKER_PATH="/lib/ld-musl-${CARCH}.so.1" LOADER_NAME="$_ld" WITH_LIBUCONTEXT=YesPlease
+ make LINKER_PATH="/lib/ld-musl-${_link_arch}.so.1" LOADER_NAME="$_ld" WITH_LIBUCONTEXT=YesPlease
}
package() {
cd "$builddir"
- make LINKER_PATH="/lib/ld-musl-${CARCH}.so.1" LOADER_NAME="$_ld" WITH_LIBUCONTEXT=YesPlease DESTDIR="$pkgdir" install
+ make LINKER_PATH="/lib/ld-musl-${_link_arch}.so.1" LOADER_NAME="$_ld" WITH_LIBUCONTEXT=YesPlease DESTDIR="$pkgdir" install
}
sha512sums="1f7dd73efd556b7e0f7f1c80751185583de24daf4ab235b488ea1ab98cea2d3a94abed341b922be0bd43c8d539a00176b892c78acf09f2adacb279c09648b3be gcompat-0.3.0.tar.xz