git: 487097a3d2ad - main - graphics/gdal: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 04 Aug 2025 13:23:34 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=487097a3d2ad2f145b5ac0b924ad734dd9dc69cc
commit 487097a3d2ad2f145b5ac0b924ad734dd9dc69cc
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:23:24 +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
---
graphics/gdal/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/graphics/gdal/Makefile b/graphics/gdal/Makefile
index 7a20a59b31b5..bad1cc520728 100644
--- a/graphics/gdal/Makefile
+++ b/graphics/gdal/Makefile
@@ -26,6 +26,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 \
@@ -56,7 +57,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 \