binutils: fix build with gcc@10: (#16661)

The issue seems to be fixed in the development version already.
This commit is contained in:
Michael Kuhn 2020-05-15 13:13:04 +02:00 committed by GitHub
parent e0572a7d96
commit 154504da71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,4 +124,7 @@ def flag_handler(self, name, flags):
and (self.compiler.name == 'fj' or self.compiler.name == 'clang')\
and self.version <= ver('2.31.1'):
flags.append('-Wno-narrowing')
elif name == 'cflags':
if self.spec.satisfies('@:2.34 %gcc@10:'):
flags.append('-fcommon')
return (flags, None, None)