[pythia6] needs CFLAGS/FFLAGS=-fcommon when %gcc@10: (#19947)
This commit is contained in:
parent
385f5b8c53
commit
8752fc5872
@ -144,6 +144,11 @@ def patch(self):
|
|||||||
r'\1{0}'.format(self.spec.variants['nmxhep'].value),
|
r'\1{0}'.format(self.spec.variants['nmxhep'].value),
|
||||||
'pyhepc.f')
|
'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):
|
def cmake_args(self):
|
||||||
args = ['-DPYTHIA6_VERSION={0}'.format(self.version.dotted)]
|
args = ['-DPYTHIA6_VERSION={0}'.format(self.version.dotted)]
|
||||||
return args
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user