[libvigraimpex] 01/01: deb/rules: set ffloat-store for i386 CPUs
Daniel Stender
stender at moszumanska.debian.org
Mon Apr 18 16:05:40 UTC 2016
This is an automated email from the git hooks/post-receive script.
stender pushed a commit to branch master
in repository libvigraimpex.
commit 03275a58181aebe6c81bf5b871fec8465fafe1de
Author: Daniel Stender <stender at debian.org>
Date: Mon Apr 18 17:38:22 2016 +0200
deb/rules: set ffloat-store for i386 CPUs
---
debian/changelog | 7 +++++++
debian/rules | 11 ++++++-----
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 72029cf..b911609 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+libvigraimpex (1.10.0+git20160211.167be93+dfsg-2) unstable; urgency=medium
+
+ * deb/rules: set ffloat-store for i386 CPUs (Closes: #820429)
+ [thanks to Tobias Frost].
+
+ -- Daniel Stender <stender at debian.org> Mon, 18 Apr 2016 17:37:49 +0200
+
libvigraimpex (1.10.0+git20160211.167be93+dfsg-1) unstable; urgency=medium
* Stripped non-free "lenna" images from source tarball (Closes: #794853):
diff --git a/debian/rules b/debian/rules
index ea49795..8a74b54 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,17 +6,18 @@ CFLAGS := $(shell env DEB_CFLAGS_MAINT_APPEND=-pipe dpkg-buildflags --get CFLAGS
CXXFLAGS := $(shell env DEB_CXXFLAGS_MAINT_APPEND=-pipe dpkg-buildflags --get CXXFLAGS; dpkg-buildflags --get CPPFLAGS)
LDFLAGS := $(shell env DEB_LDFLAGS_MAINT_APPEND='-Wl,--as-needed -Wl,-z,now' dpkg-buildflags --get LDFLAGS)
-ifeq ($(DEB_HOST_ARCH),i386)
- CFLAGS += -ffloat-store
- CXXFLAGS += -ffloat-store
-endif
-
# support for Ubuntu development
ifeq ($(DEB_HOST_ARCH),ppc64el)
CFLAGS := $(subst -O3,-O2,$(CFLAGS))
CXXFLAGS := $(subst -O3,-O2,$(CXXFLAGS))
endif
+# fixing floating-point rounding errors on i386 CPUs, see #820429
+ifneq (,$(filter $(DEB_HOST_ARCH_CPU), i386))
+ CFLAGS += -ffloat-store
+ CXXFLAGS += -ffloat-store
+endif
+
# build with Boost.Thread on armel, see #814606
ifeq ($(DEB_HOST_ARCH),armel)
CMAKE_EXTRAS := -DWITH_BOOST_THREAD=1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libvigraimpex.git
More information about the debian-science-commits
mailing list