diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2011-11-25 23:05:21 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2011-11-25 23:05:21 +0100 |
commit | 5ed9d310b2a8689d3bdebecb5b2fb8e5f5057293 (patch) | |
tree | bee8bd0952305360f4afa416e7492d3bf9b92abc /core/ppl/PKGBUILD | |
parent | 154fc82a1f8c529840f591456e8d131a5f74cbf3 (diff) |
Disable using Loongson 2F specific instructions for ppl to avoid the madd.d bug (untested).
Diffstat (limited to 'core/ppl/PKGBUILD')
-rw-r--r-- | core/ppl/PKGBUILD | 5 |
1 files changed, 5 insertions, 0 deletions
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 } |