Merge pull request #263 from nolta/hdf5-mpi

fix non-mpi hdf5 package build
This commit is contained in:
Todd Gamblin 2015-12-22 07:57:11 -08:00
commit 5bcec9289e

View File

@ -26,16 +26,14 @@ def install(self, spec, prefix):
if '+mpi' in spec: if '+mpi' in spec:
extra_args.extend([ extra_args.extend([
"--enable-parallel", "--enable-parallel",
"CC=%s" % spec['mpich'].prefix.bin + "/mpicc", "CC=%s" % spec['mpi'].prefix.bin + "/mpicc",
"CXX=%s" % spec['mpich'].prefix.bin + "/mpic++", "CXX=%s" % spec['mpi'].prefix.bin + "/mpic++",
]) ])
configure( configure(
"--prefix=%s" % prefix, "--prefix=%s" % prefix,
"--with-zlib=%s" % spec['zlib'].prefix, "--with-zlib=%s" % spec['zlib'].prefix,
"--enable-shared", "--enable-shared",
"CC=%s" % spec['mpi'].prefix.bin + "/mpicc",
"CXX=%s" % spec['mpi'].prefix.bin + "/mpic++",
*extra_args) *extra_args)
make() make()