mash: fix compilation for aarch64 (#40218)

This commit is contained in:
snehring 2023-09-28 11:16:11 -05:00 committed by GitHub
parent 6d55066b94
commit f77a38a96b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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