From 025a30f6d20b4d14b6b55f9cd5f004630d7f4400 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 6 May 2021 07:10:48 +0200 Subject: community/gdal: added proper SSE configure flags (no autoguessing) --- community/gdal/PKGBUILD | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/community/gdal/PKGBUILD b/community/gdal/PKGBUILD index 6aa81b69..f2c3ce89 100644 --- a/community/gdal/PKGBUILD +++ b/community/gdal/PKGBUILD @@ -1,3 +1,21 @@ +# enable SSE/SSE2 where appripriate +if [ "${CARCH}" = "i486" -o "${CARCH}" = "i686" ]; then + eval "$( + declare -f build | \ + sed ' + s|./configure |./configure --with-sse=no --with-sse3-no --with-avx=no | + ' + )" +fi +if [ "${CARCH}" = "pentium4" ]; then + eval "$( + declare -f build | \ + sed ' + s|./configure |./configure --with-sse=yes --with-ssse3-no --with-avx=no | + ' + )" +fi + # no mariadb yet on i486 if [ "${CARCH}" = "i486" ]; then depends=(${depends[@]//mariadb-libs/}) -- cgit v1.2.3-70-g09d2