From 5ed9d310b2a8689d3bdebecb5b2fb8e5f5057293 Mon Sep 17 00:00:00 2001 From: Michał Masłowski Date: Fri, 25 Nov 2011 23:05:21 +0100 Subject: Disable using Loongson 2F specific instructions for ppl to avoid the madd.d bug (untested). --- core/ppl/PKGBUILD | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/ppl/PKGBUILD b/core/ppl/PKGBUILD index 193da1a19..57cb47e14 100644 --- a/core/ppl/PKGBUILD +++ b/core/ppl/PKGBUILD @@ -16,6 +16,11 @@ md5sums=('ce014f153a28006009db207ca953a984') build() { cd $srcdir/ppl-$pkgver + # Workaround madd.d making a SIGILL on a NaN. + [ "$CARCH" == "mips64el" ] && { + CFLAGS=${CFLAGS/-march=loongson2f/-march=mips3 -mtune=loongson2f} + CXXFLAGS=${CXXFLAGS/-march=loongson2f/-march=mips3 -mtune=loongson2f} + } ./configure --prefix=/usr --enable-interfaces="c,cxx" make } -- cgit v1.2.3-54-g00ecf