summaryrefslogtreecommitdiff
path: root/extra/inkscape/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/inkscape/PKGBUILD')
-rw-r--r--extra/inkscape/PKGBUILD5
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