summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@jlab.org>2020-11-16 16:12:20 -0600
committerGitHub <noreply@github.com>2020-11-16 16:12:20 -0600
commit8752fc5872d4e4402b00b4b3f2e5e7173fff75b7 (patch)
treea82ff6a3e346b25c4018a5472631db8e81cc3810 /var
parent385f5b8c53e898364db81b21cae522a92b30ae70 (diff)
downloadspack-8752fc5872d4e4402b00b4b3f2e5e7173fff75b7.tar.gz
spack-8752fc5872d4e4402b00b4b3f2e5e7173fff75b7.tar.bz2
spack-8752fc5872d4e4402b00b4b3f2e5e7173fff75b7.tar.xz
spack-8752fc5872d4e4402b00b4b3f2e5e7173fff75b7.zip
[pythia6] needs CFLAGS/FFLAGS=-fcommon when %gcc@10: (#19947)
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