mash: fix compilation for aarch64 (#40218)
This commit is contained in:
parent
6d55066b94
commit
f77a38a96b
1 changed files with 10 additions and 0 deletions
|
@ -27,6 +27,16 @@ class Mash(AutotoolsPackage):
|
||||||
depends_on("capnproto")
|
depends_on("capnproto")
|
||||||
depends_on("gsl")
|
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):
|
def configure_args(self):
|
||||||
args = []
|
args = []
|
||||||
args.append("--with-capnp=" + self.spec["capnproto"].prefix)
|
args.append("--with-capnp=" + self.spec["capnproto"].prefix)
|
||||||
|
|
Loading…
Reference in a new issue