~alpine/aports

[alpine-aports] [PATCH] main/libmad: fix build on mips*

alpine-mips-patches
Details
Message ID
<20181126225523.1FCE26401C@mx7.valuehost.ru>
Sender timestamp
1543269943
DKIM signature
missing
Download raw message
Patch: +2 -0
libmad uses the now unsupported inline asm constraint in the code
so switch mips* to generic high-precision version.

Keep pkgrel intact since other architectures are unaffected and
no previously built mips* apks exist.
---
 main/libmad/APKBUILD | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/main/libmad/APKBUILD b/main/libmad/APKBUILD
index d552568938..1f4248801f 100644
--- a/main/libmad/APKBUILD
+++ b/main/libmad/APKBUILD
@@ -30,10 +30,12 @@ prepare() {
 
 build() {
 	cd "$builddir"
+	case "$CARCH" in mips*) _enable_fpm_64bit="--enable-fpm=64bit";; esac
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
 		--prefix=/usr \
+		$_enable_fpm_64bit \
 		--enable-accuracy
 
 	make -j1
-- 
2.19.1




---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---