[Git][debian-gis-team/gdal][master] Explicitly enable CPU optimizations on amd64 & i386. (closes: #954917)

Bas Couwenberg gitlab at salsa.debian.org
Sun Apr 12 10:43:48 BST 2020



Bas Couwenberg pushed to branch master at Debian GIS Project / gdal


Commits:
3842071b by Bas Couwenberg at 2020-04-12T11:43:33+02:00
Explicitly enable CPU optimizations on amd64 & i386. (closes: #954917)

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -4,6 +4,8 @@ gdal (3.0.4+dfsg-2) UNRELEASED; urgency=medium
     - Drop --parallel option, enabled by default
     - Don't explicitly enable autoreconf, enabled by default
     - Drop dh-autoreconf build dependency
+  * Explicitly enable CPU optimizations on amd64 & i386.
+    (closes: #954917)
 
  -- Bas Couwenberg <sebastic at debian.org>  Thu, 19 Mar 2020 17:59:48 +0100
 


=====================================
debian/rules
=====================================
@@ -45,6 +45,16 @@ else
   WITH_HDF5:=
 endif
 
+ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386))
+  WITH_SSE=yes
+  WITH_SSSE3=yes
+  WITH_AVX=yes
+else
+  WITH_SSE=no
+  WITH_SSSE3=no
+  WITH_AVX=no
+endif
+
 NJOBS := -j1
 ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
 NJOBS := -j$(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
@@ -109,6 +119,9 @@ override_dh_auto_configure:
 			--with-rename-internal-libtiff-symbols=yes \
 			--with-rename-internal-libgeotiff-symbols=yes \
 			--with-threads \
+			--with-sse=$(WITH_SSE) \
+			--with-ssse3=$(WITH_SSSE3) \
+			--with-avx=$(WITH_AVX) \
 			--with-armadillo=yes \
 			--with-cfitsio=yes \
 			--with-charls \



View it on GitLab: https://salsa.debian.org/debian-gis-team/gdal/-/commit/3842071b4cd740c7929e41909494bb3d6adbce24

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/gdal/-/commit/3842071b4cd740c7929e41909494bb3d6adbce24
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20200412/0237d336/attachment-0001.html>


More information about the Pkg-grass-devel mailing list