[hyperrogue] 03/05: Build with O0 optimization on arm64 and hppa to prevent compilation errors
Markus Koschany
apo at moszumanska.debian.org
Sat Sep 10 21:03:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
apo pushed a commit to branch master
in repository hyperrogue.
commit f23e8ea0fba1fe2cc22e69775d39fbd3509bb587
Author: Markus Koschany <apo at debian.org>
Date: Sat Sep 10 22:24:38 2016 +0200
Build with O0 optimization on arm64 and hppa to prevent compilation errors
and memory exhaustion.
---
debian/rules | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 0f1d54f..db30792 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,14 @@
#!/usr/bin/make -f
-
export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+WEAK_HOSTS := arm64 hppa
+
+# Use less optimization on architectures that FTBFS otherwise
+ifneq (,$(findstring $(DEB_HOST_ARCH),$(WEAK_HOSTS)))
+export DEB_CXXFLAGS_MAINT_APPEND=-O0
+endif
+
%:
dh $@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/hyperrogue.git
More information about the Pkg-games-commits
mailing list