libunwind: fix build with gcc@10: (#16782)
This commit is contained in:
parent
232cdb85a5
commit
d0e4414bb6
@ -47,7 +47,15 @@ class Libunwind(AutotoolsPackage):
|
|||||||
|
|
||||||
provides('unwind')
|
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):
|
def configure_args(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
|
Loading…
Reference in New Issue
Block a user