[khronos-opencl-headers] 05/08: restrict usage of -msse* to x86 architectures

Andreas Beckmann anbe at moszumanska.debian.org
Mon Sep 21 13:18:15 UTC 2015


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

anbe pushed a commit to branch master
in repository khronos-opencl-headers.

commit 17a375ec0f6590bcf6f403db828600ef7455a749
Author: Andreas Beckmann <anbe at debian.org>
Date:   Mon Sep 21 14:37:54 2015 +0200

    restrict usage of -msse* to x86 architectures
---
 debian/t/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/t/Makefile b/debian/t/Makefile
index c1e42be..2659fc1 100644
--- a/debian/t/Makefile
+++ b/debian/t/Makefile
@@ -1,5 +1,8 @@
-CFLAGS		+= -I. $(OPENCLFLAGS) -msse2 -msse
-CXXFLAGS	+= -I. $(OPENCLFLAGS) -msse2 -msse
+ifneq (,$(filter $(DEB_HOST_ARCH),i386 amd64))
+ARCHFLAGS	+= -msse2 -msse
+endif
+CFLAGS		+= -I. $(OPENCLFLAGS) $(ARCHFLAGS)
+CXXFLAGS	+= -I. $(OPENCLFLAGS) $(ARCHFLAGS)
 
 check:
 	$(MAKE) compile_opencl_h

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/khronos-opencl-headers.git



More information about the Pkg-opencl-commits mailing list