libunwind: fix build with gcc@10: (#16782)

This commit is contained in:
Michael Kuhn 2020-05-25 14:22:51 +02:00 committed by GitHub
parent 232cdb85a5
commit d0e4414bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,15 @@ class Libunwind(AutotoolsPackage):
provides('unwind')
flag_handler = AutotoolsPackage.build_system_flags
def flag_handler(self, name, flags):
wrapper_flags = None
if name == 'cflags':
# https://github.com/libunwind/libunwind/pull/166
if self.spec.satisfies('@:1.4 %gcc@10:'):
wrapper_flags = ['-fcommon']
return (wrapper_flags, None, flags)
def configure_args(self):
spec = self.spec