Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 2023 07:41:49 GMT
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 77455882b6f8 - main - devel/cargo-c: fix build on armv7
Message-ID:  <202310090741.3997fnpu020230@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=77455882b6f8c9854c788f45d9fb4abd93555647

commit 77455882b6f8c9854c788f45d9fb4abd93555647
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:40:30 +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
---
 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?202310090741.3997fnpu020230>