summaryrefslogtreecommitdiff
path: root/extra/openmpi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/openmpi/PKGBUILD')
-rw-r--r--extra/openmpi/PKGBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/extra/openmpi/PKGBUILD b/extra/openmpi/PKGBUILD
index 5c4ba5d9d..bcb38238a 100644
--- a/extra/openmpi/PKGBUILD
+++ b/extra/openmpi/PKGBUILD
@@ -4,10 +4,11 @@ pkgname=openmpi
pkgver=1.6.5
pkgrel=1
pkgdesc="High performance message passing library (MPI)"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.open-mpi.org"
license=('custom')
-depends=('gcc-fortran' 'openssh' 'valgrind' 'libltdl' 'hwloc')
+depends=('gcc-fortran' 'openssh' 'libltdl' 'hwloc')
+[ "$CARCH" = "mips64el" ] || depends+=('valgrind')
makedepends=('inetutils')
options=('staticlibs')
source=(http://www.open-mpi.org/software/ompi/v1.6/downloads/${pkgname}-${pkgver}.tar.bz2)
@@ -16,6 +17,11 @@ sha1sums=('93859d515b33dd9a0ee6081db285a2d1dffe21ce')
build() {
cd ${pkgname}-${pkgver}
+ if [ "$CARCH" = "mips64el" ]; then
+ valgrind="--without-valgrind --disable-memchecker"
+ else
+ valgrind="--with-valgrind --enable-memchecker"
+ fi
# Make sure we use the system ltdl library rather than the ones in the tarball
rm -r opal/libltdl
@@ -25,8 +31,7 @@ build() {
--libdir=/usr/lib/${pkgname} \
--with-threads=posix \
--enable-smp-locks \
- --with-valgrind \
- --enable-memchecker \
+ $valgrind \
--enable-debug \
--enable-pretty-print-stacktrace \
--without-slurm \