bwa: patch Makefile to permit the use of compilers other than GCC (#18189)

This commit is contained in:
ketsubouchi 2020-08-20 16:55:05 +09:00 committed by GitHub
parent c786eb46bb
commit 8a02ef4d51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,8 @@ def install(self, spec, prefix):
zlib_inc_path, 'Makefile')
filter_file(r'^LIBS=', "LIBS=-L%s " % spec['zlib'].prefix.lib,
'Makefile')
# use spack C compiler
filter_file('^CC=.*', 'CC={0}'.format(spack_cc), 'Makefile')
make()
mkdirp(prefix.bin)