fix(main/gdal): fix builds for arm

No need to revbump as the package is not uploaded to the server
This commit is contained in:
termux-pacman-bot
2025-05-21 13:15:33 +00:00
parent 3970177889
commit 649e3e8699

View File

@@ -19,3 +19,11 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DGDAL_USE_GEOTIFF_INTERNAL=ON
-DBUILD_PYTHON_BINDINGS=OFF
"
termux_step_pre_configure () {
if [ "${TERMUX_ARCH}" = "arm" ]; then
## -mfpu=neon causes build failure on ARM.
CFLAGS="${CFLAGS/-mfpu=neon/} -mfpu=vfp"
CXXFLAGS="${CXXFLAGS/-mfpu=neon/} -mfpu=vfp"
fi
}