diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/claw/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/claw/package.py b/var/spack/repos/builtin/packages/claw/package.py index 589574a956..380c53b9db 100644 --- a/var/spack/repos/builtin/packages/claw/package.py +++ b/var/spack/repos/builtin/packages/claw/package.py @@ -47,6 +47,13 @@ class Claw(CMakePackage): filter_compiler_wrappers('claw_f.conf', relative_root='etc') + def flag_handler(self, name, flags): + # https://gcc.gnu.org/gcc-10/porting_to.html + if name == 'cflags' and self.spec.satisfies('%gcc@10:'): + flags.append('-fcommon') + + return flags, None, None + def cmake_args(self): args = [ '-DOMNI_CONF_OPTION=--with-libxml2=%s' % |