git: 492a4156e4b1 - 2023Q4 - devel/cargo-c: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 Oct 2023 07:43:45 UTC
The branch 2023Q4 has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=492a4156e4b1d3ed8046910bb6501780cedb4027 commit 492a4156e4b1d3ed8046910bb6501780cedb4027 Author: Robert Clausecker <fuz@FreeBSD.org> AuthorDate: 2023-10-07 07:18:37 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-10-09 07:43:11 +0000 devel/cargo-c: fix build on armv7 The address space does not suffice to build cargo-c on armv7 with LTO. Disable LTO on armv6/armv7 to make the build succeed. Approved by: portmgr (build fix blanket) MFH: 2023Q4 (cherry picked from commit 77455882b6f8c9854c788f45d9fb4abd93555647) --- devel/cargo-c/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/devel/cargo-c/Makefile b/devel/cargo-c/Makefile index df6d6d36d8a7..621e276b6aab 100644 --- a/devel/cargo-c/Makefile +++ b/devel/cargo-c/Makefile @@ -25,8 +25,15 @@ PLIST_FILES= bin/cargo-capi \ bin/cargo-ctest \ ${NULL} +.include <bsd.port.pre.mk> + +# prevent address space exhaustion on armv6/armv7 +.if ${ARCH:Marmv?} +LTO_UNSAFE= yes +.endif + post-patch: @${REINPLACE_CMD} -e 's,libdir.join("pkgconfig,prefix.join("libdata/pkgconfig,' \ ${WRKSRC}/src/install.rs -.include <bsd.port.mk> +.include <bsd.port.post.mk>