From 6017a6a6fe13f5fcc59b26e698d8caa0fa181e98 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Fri, 21 Apr 2017 23:43:27 +0200 Subject: netcdf: fix missing CC = mpicc ; this makes it work with Intel MPI (#3942) --- var/spack/repos/builtin/packages/netcdf/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/netcdf/package.py b/var/spack/repos/builtin/packages/netcdf/package.py index f512ecf2ea..ca6a30e9a4 100644 --- a/var/spack/repos/builtin/packages/netcdf/package.py +++ b/var/spack/repos/builtin/packages/netcdf/package.py @@ -34,7 +34,7 @@ class Netcdf(AutotoolsPackage): url = "http://www.gfd-dennou.org/arch/netcdf/unidata-mirror/netcdf-4.3.3.tar.gz" # Version 4.4.1.1 is having problems in tests - # https://github.com/Unidata/netcdf-c/issues/343 + # https://github.com/Unidata/netcdf-c/issues/343 version('4.4.1.1', '503a2d6b6035d116ed53b1d80c811bda') # netcdf@4.4.1 can crash on you (in real life and in tests). See: # https://github.com/Unidata/netcdf-c/issues/282 @@ -137,6 +137,7 @@ class Netcdf(AutotoolsPackage): if '+mpi' in spec: config_args.append('--enable-parallel4') + config_args.append('CC=%s' % spec['mpi'].mpicc) CPPFLAGS.append("-I%s/include" % spec['hdf5'].prefix) LDFLAGS.append("-L%s/lib" % spec['hdf5'].prefix) -- cgit v1.2.3-70-g09d2