summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsnehring <7978778+snehring@users.noreply.github.com>2023-09-28 11:16:11 -0500
committerGitHub <noreply@github.com>2023-09-28 10:16:11 -0600
commitf77a38a96bef7184f872f4225801ac937e825866 (patch)
tree012f17f56c44cda76c6c75c0f7e119ba46a01efb
parent6d55066b94a9669816fce5c22102997a1f7b21a5 (diff)
downloadspack-f77a38a96bef7184f872f4225801ac937e825866.tar.gz
spack-f77a38a96bef7184f872f4225801ac937e825866.tar.bz2
spack-f77a38a96bef7184f872f4225801ac937e825866.tar.xz
spack-f77a38a96bef7184f872f4225801ac937e825866.zip
mash: fix compilation for aarch64 (#40218)
-rw-r--r--var/spack/repos/builtin/packages/mash/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mash/package.py b/var/spack/repos/builtin/packages/mash/package.py
index 4f6ac17988..7148bbe1e2 100644
--- a/var/spack/repos/builtin/packages/mash/package.py
+++ b/var/spack/repos/builtin/packages/mash/package.py
@@ -27,6 +27,16 @@ class Mash(AutotoolsPackage):
depends_on("capnproto")
depends_on("gsl")
+ def patch(self):
+ if self.spec.satisfies("target=aarch64:"):
+ filter_file(
+ "CXXFLAGS += -include src/mash/memcpyLink.h -Wl,--wrap=memcpy",
+ "",
+ "Makefile.in",
+ string=True,
+ )
+ filter_file("CFLAGS += -include src/mash/memcpyLink.h", "", "Makefile.in", string=True)
+
def configure_args(self):
args = []
args.append("--with-capnp=" + self.spec["capnproto"].prefix)