likwid: fix build with gcc@10: (#16641)
This commit is contained in:
parent
154504da71
commit
90e15cae16
1 changed files with 6 additions and 0 deletions
|
@ -106,6 +106,12 @@ def install(self, spec, prefix):
|
|||
spec['lua'].prefix.bin),
|
||||
'config.mk')
|
||||
|
||||
# https://github.com/RRZE-HPC/likwid/issues/287
|
||||
if self.spec.satisfies('@:5.0.2 %gcc@10:'):
|
||||
filter_file(r'^(CFLAGS.*)',
|
||||
'\\1 -fcommon',
|
||||
'make/include_GCC.mk')
|
||||
|
||||
env['PWD'] = os.getcwd()
|
||||
make()
|
||||
make('install')
|
||||
|
|
Loading…
Reference in a new issue