[alberta] 02/02: Use clang on PowerPC.
Ansgar Burchardt
ansgar at moszumanska.debian.org
Tue May 13 12:25:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
ansgar pushed a commit to branch master
in repository alberta.
commit 7a05a11ea6d149dc1084e6a94c111d6eff8476f6
Author: Ansgar Burchardt <burchardt at igpm.rwth-aachen.de>
Date: Tue May 13 14:04:27 2014 +0200
Use clang on PowerPC.
gcc cannot fold IBM's 128bit long doubles that are used on PowerPC and
fails to compile statements like
static const double a = 1.0L / 3.0L;
Reference: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26374>
---
debian/control | 3 ++-
debian/rules | 5 +++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index e3bdb3d..9af3254 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,8 @@ Uploaders: Ansgar Burchardt <ansgar at debian.org>
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/alberta.git
Vcs-Git: git://anonscm.debian.org/debian-science/packages/alberta.git
Homepage: http://www.alberta-fem.de/
-Build-Depends: debhelper (>= 9), dh-autoreconf, pkg-config (>= 0.28)
+Build-Depends: debhelper (>= 9), dh-autoreconf, pkg-config (>= 0.28),
+ clang [powerpc ppc64 ppc64el]
Package: libalberta-dev
Section: libdevel
diff --git a/debian/rules b/debian/rules
index 15070c7..1c9b390 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,11 @@ CONFIGURE_FLAGS := \
--without-grape \
--without-silo
+DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
+ifneq (,$(filter powerpc ppc64 ppc64el,$(DEB_HOST_ARCH)))
+ CONFIGURE_FLAGS += CC=clang
+endif
+
%:
dh $@ --parallel --with autoreconf
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/alberta.git
More information about the debian-science-commits
mailing list