[opencv] 05/11: d/rules: enable SSE and SSE2 on all architectures based on a amd64 cpu, not just amd64 itself
Mattia Rizzolo
mattia at debian.org
Mon Oct 16 22:03:56 UTC 2017
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository opencv.
commit b8056851104f8b5f83097fc026602ceef476f673
Author: Mattia Rizzolo <mattia at debian.org>
Date: Mon Oct 16 22:26:06 2017 +0200
d/rules: enable SSE and SSE2 on all architectures based on a amd64 cpu, not just amd64 itself
This enables SSE on e.g. kfreebsd-amd64 (and hurd-amd64, even if nobody
builds it…)
Gbp-Dch: Short
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 9154d96..323d89b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,7 @@ DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
BUILDDIR = obj-$(DEB_HOST_MULTIARCH)
# SSE options
-ifeq ($(DEB_HOST_ARCH),amd64)
+ifeq ($(DEB_HOST_ARCH_CPU),amd64)
CMAKE_ARCH_FLAGS = -DENABLE_SSE=ON -DENABLE_SSE2=ON -DENABLE_SSE3=OFF
else
CMAKE_ARCH_FLAGS = -DENABLE_SSE=OFF -DENABLE_SSE2=OFF -DENABLE_SSE3=OFF
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list