diff options
author | Kurt Sansom <kayarre@gmail.com> | 2021-01-21 17:07:28 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 17:07:28 -0600 |
commit | 06f65afdd5e1b2be8274ebfb76821b790b3897e0 (patch) | |
tree | 7b1f5c31757c14f9f6720231c0b30794041d3bf6 | |
parent | 6b13909cc1161809c76a3b83250df886b937b4af (diff) | |
download | spack-06f65afdd5e1b2be8274ebfb76821b790b3897e0.tar.gz spack-06f65afdd5e1b2be8274ebfb76821b790b3897e0.tar.bz2 spack-06f65afdd5e1b2be8274ebfb76821b790b3897e0.tar.xz spack-06f65afdd5e1b2be8274ebfb76821b790b3897e0.zip |
hdf: build with gcc10 (#20773)
-rw-r--r-- | var/spack/repos/builtin/packages/hdf/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hdf/package.py b/var/spack/repos/builtin/packages/hdf/package.py index 5af6e1fefa..d12aa812fd 100644 --- a/var/spack/repos/builtin/packages/hdf/package.py +++ b/var/spack/repos/builtin/packages/hdf/package.py @@ -144,6 +144,14 @@ class Hdf(AutotoolsPackage): # We should not specify '--disable-hdf4-xdr' due to a bug in the # configure script. config_args.append('LIBS=%s' % self.spec['rpc'].libs.link_flags) + + # https://github.com/Parallel-NetCDF/PnetCDF/issues/61 + if self.spec.satisfies('%gcc@10:'): + config_args.extend([ + 'FFLAGS=-fallow-argument-mismatch', + 'FCFLAGS=-fallow-argument-mismatch'] + ) + return config_args # Otherwise, we randomly get: |