claw: support for gcc10 (#22618)

This commit is contained in:
Sergey Kosukhin 2021-03-30 20:33:31 +02:00 committed by GitHub
parent db37e67c3b
commit eb48b29375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,13 @@ class Claw(CMakePackage):
filter_compiler_wrappers('claw_f.conf', relative_root='etc') filter_compiler_wrappers('claw_f.conf', relative_root='etc')
def flag_handler(self, name, flags):
# https://gcc.gnu.org/gcc-10/porting_to.html
if name == 'cflags' and self.spec.satisfies('%gcc@10:'):
flags.append('-fcommon')
return flags, None, None
def cmake_args(self): def cmake_args(self):
args = [ args = [
'-DOMNI_CONF_OPTION=--with-libxml2=%s' % '-DOMNI_CONF_OPTION=--with-libxml2=%s' %