bwa: fixing build errors with gcc10+ (#24475)
This commit is contained in:
parent
6b852bc170
commit
cf0b3632ff
@ -38,6 +38,11 @@ def install(self, spec, prefix):
|
||||
'Makefile')
|
||||
# use spack C compiler
|
||||
filter_file('^CC=.*', 'CC={0}'.format(spack_cc), 'Makefile')
|
||||
# fix gcc 10+ errors
|
||||
if self.spec.satisfies('%gcc@10:'):
|
||||
filter_file('const uint8_t rle_auxtab[8]',
|
||||
'extern const uint8_t rle_auxtab[8]',
|
||||
'rle.h', string=True)
|
||||
make()
|
||||
|
||||
mkdirp(prefix.bin)
|
||||
|
Loading…
Reference in New Issue
Block a user