diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/bwa/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/bwa/package.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/bwa/package.py b/var/spack/repos/builtin/packages/bwa/package.py index 53019f4a73..49e7f40269 100644 --- a/var/spack/repos/builtin/packages/bwa/package.py +++ b/var/spack/repos/builtin/packages/bwa/package.py @@ -23,7 +23,7 @@ class Bwa(Package): url="https://github.com/lh3/bwa/archive/0.7.12.tar.gz", ) - depends_on("zlib") + depends_on("zlib-api") depends_on("sse2neon", when="target=aarch64:") patch( @@ -33,7 +33,7 @@ class Bwa(Package): ) def install(self, spec, prefix): - zlib_inc_path = spec["zlib"].prefix.include + zlib_inc_path = spec["zlib-api"].prefix.include if platform.machine() == "aarch64": sse2neon_inc_path = spec["sse2neon"].prefix.include filter_file( @@ -43,7 +43,7 @@ class Bwa(Package): ) else: filter_file(r"^INCLUDES=", "INCLUDES=-I%s" % zlib_inc_path, "Makefile") - filter_file(r"^LIBS=", "LIBS=-L%s " % spec["zlib"].prefix.lib, "Makefile") + filter_file(r"^LIBS=", "LIBS=-L%s " % spec["zlib-api"].prefix.lib, "Makefile") # use spack C compiler filter_file("^CC=.*", "CC={0}".format(spack_cc), "Makefile") # fix gcc 10+ errors |