git: 5b1613afc966 - main - misc/arrow-datafusion: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Jan 2025 23:47:20 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5b1613afc966939756bd8a00c53c44cafea1c777
commit 5b1613afc966939756bd8a00c53c44cafea1c777
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:46:24 +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
---
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 31a58d897810..791780ea0ac2 100644
--- a/misc/arrow-datafusion/Makefile
+++ b/misc/arrow-datafusion/Makefile
@@ -454,4 +454,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>