[med-svn] [fsm-lite] 01/03: Use sse option only for amd64 architecture

Andreas Tille tille at debian.org
Sun May 15 07:53:24 UTC 2016


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

tille pushed a commit to branch master
in repository fsm-lite.

commit 70c1d6b33fd2287035dd0dc8bb8a1b8f611f9d4f
Author: Andreas Tille <tille at debian.org>
Date:   Sun May 15 09:04:01 2016 +0200

    Use sse option only for amd64 architecture
---
 debian/rules | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/debian/rules b/debian/rules
index 70af424..fe434cc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,17 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+ifeq ($(DEB_BUILD_ARCH), amd64)
+        CPPFLAGS += -msse4.2
+endif
+
 %:
 	dh $@
 
+override_dh_auto_build:
+	dh_auto_build -- CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
+
 override_dh_auto_test:
 	echo "Upstream source is lacking file test.list which is needed for testing."

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



More information about the debian-med-commit mailing list