summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kuhn <suraia@ikkoku.de>2017-05-21 03:59:15 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2017-05-20 20:59:15 -0500
commit17b2db0bd215bbd77319484b76bc8d950fa7564d (patch)
tree058f9b1f9512b7034d2cf975a0d3e08e60271a3c
parentc741cd900b81e65d3a2b959bb3744de745ffaac4 (diff)
downloadspack-17b2db0bd215bbd77319484b76bc8d950fa7564d.tar.gz
spack-17b2db0bd215bbd77319484b76bc8d950fa7564d.tar.bz2
spack-17b2db0bd215bbd77319484b76bc8d950fa7564d.tar.xz
spack-17b2db0bd215bbd77319484b76bc8d950fa7564d.zip
Fix ncview with netcdf+mpi (#4305)
ncview has to be compiled using the same compiler as netcdf.
-rw-r--r--var/spack/repos/builtin/packages/ncview/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ncview/package.py b/var/spack/repos/builtin/packages/ncview/package.py
index 6f83aa9139..ecd733ccea 100644
--- a/var/spack/repos/builtin/packages/ncview/package.py
+++ b/var/spack/repos/builtin/packages/ncview/package.py
@@ -36,3 +36,13 @@ class Ncview(AutotoolsPackage):
depends_on('udunits2')
depends_on('libpng')
depends_on('libxaw')
+
+ def configure_args(self):
+ spec = self.spec
+
+ config_args = []
+
+ if spec.satisfies('^netcdf+mpi'):
+ config_args.append('CC={0}'.format(spec['mpi'].mpicc))
+
+ return config_args