building with GCC needs special variables added. Intel compilers build just fine

This commit is contained in:
Mario Melara 2015-12-01 11:59:19 -08:00
parent d7fdb8e015
commit 4e0d47f1dd

View file

@ -23,9 +23,14 @@ class Adios(Package):
def install(self, spec, prefix):
configure_args = ["--prefix=%s" % prefix,
"--with-mxml=%s" % spec['mxml'].prefix,
"--with-hdf5="+os.environ["HDF5_DIR"],
"--with-netcdf="+os.environ["NETCDF_DIR"],
"--with-infiniband=no"]
"--with-hdf5=%s" % os.environ["HDF5_DIR"],
"--with-netcdf=%s" % os.environ["NETCDF_DIR"],
"--with-infiniband=no",
"MPICC=cc","MPICXX=CC","MPIFC=ftn",
"CPPFLAGS=-DMPICH_IGNORE_CXX_SEEK"]
if spec.satisfies('%gcc'):
configure_args.extend(["CC=gcc", "CXX=g++", "FC=gfortran"])
configure(*configure_args)
make()