git: 490512609f34 - 2025Q3 - graphics/gdal: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 04 Aug 2025 13:25:40 UTC
The branch 2025Q3 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=490512609f3443ac2e77c761965aa55faf329dbf
commit 490512609f3443ac2e77c761965aa55faf329dbf
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-07-29 15:35:20 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-08-04 13:24:40 +0000
graphics/gdal: fix build on armv7
This port uses NEON through the sse2neon.h header. Unfortunately the
header is written such that there is no difference between __m128 and
__m128d, while real SSE intrinsics have such a difference. This causes
problems with some template functions down the road.
Disable NEON on armv7 to avoid this problem.
Approved by: portmgr (build fix blanket)
MFH: 2025Q3
(cherry picked from commit 487097a3d2ad2f145b5ac0b924ad734dd9dc69cc)
---
graphics/gdal/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/graphics/gdal/Makefile b/graphics/gdal/Makefile
index f8c5969a8b3a..db222964df6b 100644
--- a/graphics/gdal/Makefile
+++ b/graphics/gdal/Makefile
@@ -27,6 +27,7 @@ LIB_DEPENDS= libgeotiff.so:graphics/libgeotiff \
USES= cmake compiler:c++17-lang cpe iconv jpeg localbase pkgconfig ssl tar:xz
+CMAKE_OFF_armv7= GDAL_ENABLE_ARM_NEON_OPTIMIZATIONS
CMAKE_OFF= BUILD_CSHARP_BINDINGS \
BUILD_DOCS \
BUILD_JAVA_BINDINGS \
@@ -57,7 +58,8 @@ CMAKE_OFF= BUILD_CSHARP_BINDINGS \
GDAL_USE_TIFF_INTERNAL \
GDAL_USE_ZLIB_INTERNAL \
HDFS_ENABLED \
- SWIG_REGENERATE_PYTHON
+ SWIG_REGENERATE_PYTHON \
+ ${CMAKE_OFF_${ARCH}}
CMAKE_ON= BUILD_APPS \
BUILD_SHARED_LIBS \
BUILD_STATIC_LIBS \