From a652de4c6c87c74b32ae817268fa80e38a594cc8 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Fri, 11 Jun 2021 11:29:00 +0100 Subject: [PATCH] musl: switch to uname -m --- pkgs/musl/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/musl/build.sh b/pkgs/musl/build.sh index 95ca230..12e300d 100644 --- a/pkgs/musl/build.sh +++ b/pkgs/musl/build.sh @@ -13,8 +13,8 @@ build() { cd $pkgname-$pkgver ./configure \ --prefix=/usr \ - --build=x86_64-unknown-linux-musl \ - --host=x86_64-unknown-linux-musl \ + --build=$(uname -m)-unknown-linux-musl \ + --host=$(uname -m)-unknown-linux-musl \ --enable-wrapper=no gmake } @@ -24,7 +24,7 @@ package() { gmake install DESTDIR=$pkgdir rm -r $pkgdir/usr/include install -d $pkgdir/usr/bin - ln -sr $pkgdir/lib/ld-musl-x86_64.so.1 $pkgdir/usr/bin/ldd + ln -sr $pkgdir/lib/ld-musl-$(uname -m).so.1 $pkgdir/usr/bin/ldd } package_dev() {