[pythia6] needs CFLAGS/FFLAGS=-fcommon when %gcc@10: (#19947)

This commit is contained in:
Wouter Deconinck
2020-11-16 16:12:20 -06:00
committed by GitHub
parent 385f5b8c53
commit 8752fc5872

View File

@@ -144,6 +144,11 @@ def patch(self):
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