[med-svn] [pirs] 02/03: Disable SSE2 optimization for all but amd64.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Nov 30 13:23:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch staging
in repository pirs.

commit a0c5c9c8b830527150d3e23c366109ca7db63b3f
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Nov 30 13:04:49 2016 +0000

    Disable SSE2 optimization for all but amd64.
    
    Gbp-Dch: short
    Closes: #846330
    Thanks: John Paul Adrian Glaubitz for reporting
---
 debian/rules | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 66bc7b6..c111690 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,12 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
 DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
 PERLDIR    := debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)
 
+confflags := --enable-pirs-diploid
+DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture --query DEB_HOST_ARCH_CPU)
+ifneq ($(DEB_HOST_ARCH_CPU),amd64)
+	confflags += --disable-sse2
+endif
+
 %:
 	dh $@ --with autoreconf --sourcedirectory=src
 
@@ -24,7 +30,7 @@ override_dh_autoreconf:
 
 override_dh_auto_configure:
 #	dh_auto_configure -- --datadir=/usr/share/pirs # this should be default now
-	dh_auto_configure -- --enable-pirs-diploid
+	dh_auto_configure -- $(confflags)
 
 override_dh_auto_build:
 	dh_auto_build

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/pirs.git



More information about the debian-med-commit mailing list