git: 561f6a0a7f71 - 2022Q4 - devel/hs-haskell-language-server: Disable optimization on aarch64 to unbreak the build.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 03 Oct 2022 06:29:02 UTC
The branch 2022Q4 has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=561f6a0a7f71070b9acc2c236f3bdb709caa1ec0 commit 561f6a0a7f71070b9acc2c236f3bdb709caa1ec0 Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2022-10-03 06:17:14 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2022-10-03 06:28:55 +0000 devel/hs-haskell-language-server: Disable optimization on aarch64 to unbreak the build. Reported by: pkg-fallout (cherry picked from commit 86a3dad19f7cf5f02d425b822c41d29cb099dd72) --- devel/hs-haskell-language-server/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/devel/hs-haskell-language-server/Makefile b/devel/hs-haskell-language-server/Makefile index cac1a0538446..fa2aaaf545f0 100644 --- a/devel/hs-haskell-language-server/Makefile +++ b/devel/hs-haskell-language-server/Makefile @@ -593,10 +593,17 @@ USE_CABAL+= ${${f}_USE_CABAL} .endfor .endif +.include <bsd.port.pre.mk> + +.if ${ARCH} == aarch64 +# compiler goes out of memory +BUILD_ARGS+= --disable-optimization +.endif + .if ${FLAVOR:U} != default post-install: ${RM} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-wrapper ${MV} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-${GHC_VERSION} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk>