summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/pythia6/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pythia6/package.py b/var/spack/repos/builtin/packages/pythia6/package.py
index 4da5ec24d6..fee36c1830 100644
--- a/var/spack/repos/builtin/packages/pythia6/package.py
+++ b/var/spack/repos/builtin/packages/pythia6/package.py
@@ -144,6 +144,11 @@ class Pythia6(CMakePackage):
r'\1{0}'.format(self.spec.variants['nmxhep'].value),
'pyhepc.f')
+ def setup_build_environment(self, env):
+ if self.spec.satisfies('%gcc@10:'):
+ env.append_flags('CFLAGS', '-fcommon')
+ env.append_flags('FFLAGS', '-fcommon')
+
def cmake_args(self):
args = ['-DPYTHIA6_VERSION={0}'.format(self.version.dotted)]
return args