git: 1b5f53d147c1 - 2025Q1 - misc/arrow-datafusion: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Jan 2025 23:51:49 UTC
The branch 2025Q1 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1b5f53d147c1e4ae1c98cfbcf8b4cb32fce1392c
commit 1b5f53d147c1e4ae1c98cfbcf8b4cb32fce1392c
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-01-20 14:32:24 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-01-21 23:50:45 +0000
misc/arrow-datafusion: fix build on armv7
This avoids an address space exhaustion due to LTO.
Approved by: portmgr (build fix blanket)
MFH: 2025Q1
(cherry picked from commit 5b1613afc966939756bd8a00c53c44cafea1c777)
---
misc/arrow-datafusion/Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/misc/arrow-datafusion/Makefile b/misc/arrow-datafusion/Makefile
index 437e65f85eba..bf919d206eb6 100644
--- a/misc/arrow-datafusion/Makefile
+++ b/misc/arrow-datafusion/Makefile
@@ -453,4 +453,11 @@ CARGO_CRATES= addr2line-0.24.2 \
PLIST_FILES= bin/datafusion-cli
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${ARCH:Marmv?}
+LTO_UNSAFE= yes
+CARGO_ENV+= CARGO_PROFILE_RELEASE_LTO=false
+.endif
+
+.include <bsd.port.post.mk>