Author: tille
Date: 2014-02-13 15:55:15 +0000 (Thu, 13 Feb 2014)
New Revision: 16028

Modified:
   trunk/packages/seqan/trunk/debian/rules
Log:
Try to build 32bit arches without O2 optimisation


Modified: trunk/packages/seqan/trunk/debian/rules
===================================================================
--- trunk/packages/seqan/trunk/debian/rules     2014-02-13 15:53:46 UTC (rev 
16027)
+++ trunk/packages/seqan/trunk/debian/rules     2014-02-13 15:55:15 UTC (rev 
16028)
@@ -7,6 +7,11 @@
 export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS | sed 
's/-fstack-protector *//')
 
 DEB_HOST_ARCH       ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+DEB_BUILD_ARCH_BITS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_BITS)
+ifeq ($(DEB_BUILD_ARCH_BITS),32)
+    CFLAGS=$(shell dpkg-buildflags --get CFLAGS | sed 's/-O[2-9]/-O1/')
+    CXXFLAGS=$(shell dpkg-buildflags --get CXXFLAGS | sed 's/-O[2-9]/-O1/')
+endif
 
 %:
        dh $@


_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to