summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/bwa/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/bwa/package.py b/var/spack/repos/builtin/packages/bwa/package.py
index 65a3ae7bc8..6758825f4c 100644
--- a/var/spack/repos/builtin/packages/bwa/package.py
+++ b/var/spack/repos/builtin/packages/bwa/package.py
@@ -38,6 +38,11 @@ class Bwa(Package):
'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)