bwa: fixing build errors with gcc10+ (#24475)

This commit is contained in:
snehring 2021-06-25 15:12:01 -05:00 committed by GitHub
parent 6b852bc170
commit cf0b3632ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)