From 0cc34a48fa4c0f7f76c21b04c394be4ba270494c Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 26 Nov 2015 15:40:20 +0100 Subject: [PATCH] libjpeg-turbo: fix build on soft-float mipsel-musl. --- srcpkgs/libjpeg-turbo/template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcpkgs/libjpeg-turbo/template b/srcpkgs/libjpeg-turbo/template index ba6e1dac53d..5eccd0a5f5f 100644 --- a/srcpkgs/libjpeg-turbo/template +++ b/srcpkgs/libjpeg-turbo/template @@ -14,6 +14,12 @@ homepage="http://libjpeg-turbo.virtualgl.org/" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" checksum=521bb5d3043e7ac063ce3026d9a59cc2ab2e9636c655a2515af5f4706122233e +# SIMD uses FP instructions, disable on soft-float MIPS +case "$XBPS_TARGET_ARCH" in + mips*hf) ;; + mips*) configure_args+=" --without-simd" ;; +esac + do_install() { make DESTDIR=${DESTDIR} docdir=/usr/share/doc/${pkgname} \ exampledir=/usr/share/doc/${pkgname} install