summaryrefslogtreecommitdiff
path: root/extra/fftw/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/fftw/PKGBUILD')
-rw-r--r--extra/fftw/PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/extra/fftw/PKGBUILD b/extra/fftw/PKGBUILD
index d8b00ff55..d2a0d5832 100644
--- a/extra/fftw/PKGBUILD
+++ b/extra/fftw/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=fftw
pkgver=3.2.2
pkgrel=2
pkgdesc="A library for computing the discrete Fourier transform (DFT)"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL2')
url="http://www.fftw.org/"
depends=('glibc' 'bash')
@@ -26,7 +26,8 @@ build() {
cd ${srcdir}/${pkgname}-${pkgver}
# use upstream default CFLAGS while keeping our -march/-mtune
- CFLAGS+=" -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math"
+ [ "$CARCH" = "mips64el" ] || CFLAGS+=" -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math"
+ [ "$CARCH" = "mips64el" ] && CFLAGS+=" -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math"
CONFIGURE="./configure F77=gfortran --prefix=/usr \
--enable-shared --enable-threads"