From 90e15cae16f9bb50f0b34580e11210522ec2c52f Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Fri, 15 May 2020 13:23:57 +0200 Subject: [PATCH] likwid: fix build with gcc@10: (#16641) --- var/spack/repos/builtin/packages/likwid/package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/var/spack/repos/builtin/packages/likwid/package.py b/var/spack/repos/builtin/packages/likwid/package.py index 8556fb0d8e..8a1f39ebfd 100644 --- a/var/spack/repos/builtin/packages/likwid/package.py +++ b/var/spack/repos/builtin/packages/likwid/package.py @@ -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')