diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/hdf/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/hdf/package.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/hdf/package.py b/var/spack/repos/builtin/packages/hdf/package.py index 6c0974994b..87309ed65e 100644 --- a/var/spack/repos/builtin/packages/hdf/package.py +++ b/var/spack/repos/builtin/packages/hdf/package.py @@ -51,7 +51,7 @@ class Hdf(AutotoolsPackage): spec = self.spec config_args = [ - 'CFLAGS=-fPIC', + 'CFLAGS={0}'.format(self.compiler.pic_flag), '--with-jpeg={0}'.format(spec['jpeg'].prefix), '--with-zlib={0}'.format(spec['zlib'].prefix), '--disable-netcdf', # must be disabled to build NetCDF with HDF4 |