diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2011-09-08 21:44:17 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2011-09-08 21:44:17 +0200 |
commit | ddd1841060382cced32aff848da103ca79ad4598 (patch) | |
tree | 6ce262e872f6518d36b6c56d620bcc1734b4f232 /extra/inkscape/PKGBUILD | |
parent | 3a6c3cea10ba48ea00beb2423e67011159f800b8 (diff) |
Disable using Loongson 2F-specific instructions for inkscape to avoid a crash.
Diffstat (limited to 'extra/inkscape/PKGBUILD')
-rw-r--r-- | extra/inkscape/PKGBUILD | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extra/inkscape/PKGBUILD b/extra/inkscape/PKGBUILD index ddbbf0f95..9b58b3974 100644 --- a/extra/inkscape/PKGBUILD +++ b/extra/inkscape/PKGBUILD @@ -25,6 +25,11 @@ sha1sums=('422a4bacd4dc42adafa203244bc9816783cba4d3') install=install build() { + # 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} + } cd "${srcdir}/${pkgname}-${pkgver}" sed -i 's|/usr/bin/python\>|/usr/bin/python2|g' cxxtest/*.py |