fix non-mpi hdf5 package build

Fixes a couple of issues in c5b7eba457.
This commit is contained in:
Mike Nolta 2015-12-21 18:55:25 -05:00
parent c3aaf005e2
commit bfc72c04fb

View File

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