diff --git a/devel/hs-git-annex/Makefile b/devel/hs-git-annex/Makefile index 3c8aa842bc66f..df3ae04ef7ff9 100644 --- a/devel/hs-git-annex/Makefile +++ b/devel/hs-git-annex/Makefile @@ -300,6 +300,13 @@ MAN1PAGES= git-annex-add git-annex-expire git-annex-lookupkey \ git-remote-tor-annex git-annex-examinekey git-annex-log \ git-annex-rekey git-annex-undo +.include + +.if ${ARCH} == aarch64 +# compiler goes out of memory +BUILD_ARGS+= --disable-optimization +.endif + post-build: .for man in ${MAN1PAGES} ${WRKSRC}/Build/mdwn2man ${man} 1 ${WRKSRC}/doc/${man}.mdwn > ${WRKSRC}/doc/${man}.1 @@ -314,4 +321,4 @@ post-stage: ${LN} -sf git-annex ${STAGEDIR}${PREFIX}/bin/git-annex-shell ${LN} -sf git-annex ${STAGEDIR}${PREFIX}/bin/git-remote-tor-annex -.include +.include