likwid: fix build with gcc@10: (#16641)

This commit is contained in:
Michael Kuhn 2020-05-15 13:23:57 +02:00 committed by GitHub
parent 154504da71
commit 90e15cae16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')