Date: Mon, 9 Oct 2023 07:43:45 GMT From: Robert Clausecker <fuz@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org Subject: git: 492a4156e4b1 - 2023Q4 - devel/cargo-c: fix build on armv7 Message-ID: <202310090743.3997hjwx023793@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310090743.3997hjwx023793>