[clasp] 01/03: debian/rules: disable threads on powerpc, powerpcspe, m68k, mips, mipsel
Thomas Krennwallner
tkren-guest at moszumanska.debian.org
Sat Dec 3 13:09:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
tkren-guest pushed a commit to branch devel
in repository clasp.
commit a6fb9bf5f77182ef20608fc0be470458c6298bbd
Author: Thomas Krennwallner <tkren at kr.tuwien.ac.at>
Date: Sat Dec 3 10:28:00 2016 +0100
debian/rules: disable threads on powerpc,powerpcspe,m68k,mips,mipsel
---
debian/rules | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/debian/rules b/debian/rules
index 63b25c4..84e5fd1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,12 +4,25 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+# compile with c++11 threads only architectures with 64bit __atomic_exchange,
+# which seems to be unsupported on powerpc, powerpcspe, m68k, mips, mipsel.
+# see buildd log
+# https://buildd.debian.org/status/fetch.php?pkg=clasp&arch=mips&ver=3.2.1-1&stamp=1480664797
+# and
+# https://gcc.gnu.org/wiki/Atomic
+# https://gcc.gnu.org/wiki/Atomic/GCCMM/LIbrary
+arch = $(shell dpkg-architecture -qDEB_BUILD_ARCH | egrep -v -x "(powerpc|powerpcspe|m68k|mips|mipsel)")
+
# use custom hardening config flags for compiling clasp
CONFIG=hardening
-# use c++11 threads
-CONFIGPARMS = --prefix=/usr --with-mt=std
-# threading implies _mt builddir
-TOPBUILDDIR = build/$(CONFIG)_mt
+CONFIGPARMS = --prefix=/usr
+TOPBUILDDIR = build/$(CONFIG)
+
+# use c++11 threads, threading implies _mt builddir
+ifeq ($(if $(arch),good), good)
+ CONFIGPARMS += --with-mt=std
+ TOPBUILDDIR = build/$(CONFIG)_mt
+endif
#
# export CXXFLAGS and LDFLAGS for configure.sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clasp.git
More information about the debian-science-commits
mailing list