[wesnoth] 01/01: build with -std=c++11 to prevent FTBFS on older distros where this flag is not enabled by gcc by default

Vincent Cheng vcheng at moszumanska.debian.org
Mon Aug 29 05:03:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

vcheng pushed a commit to branch devel
in repository wesnoth.

commit 0bda29e2492cf2edecd14cb01043850a36fc84ce
Author: Vincent Cheng <vcheng at debian.org>
Date:   Sun Aug 28 22:02:18 2016 -0700

    build with -std=c++11 to prevent FTBFS on older distros where this flag is not enabled by gcc by default
---
 debian/changelog | 7 +++++++
 debian/rules     | 4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d546700..1fe10a4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+wesnoth-1.13 (1:1.13.5-2) UNRELEASED; urgency=medium
+
+  * Build with -std=c++11 to fix FTBFS on older distros (e.g. Debian 8,
+    Ubuntu 16.04) where this flag is not enabled by gcc by default.
+
+ -- Vincent Cheng <vcheng at debian.org>  Sun, 28 Aug 2016 22:00:31 -0700
+
 wesnoth-1.13 (1:1.13.5-1) experimental; urgency=medium
 
   * New upstream devel release.
diff --git a/debian/rules b/debian/rules
index 5274f16..a85771a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,8 +16,8 @@ DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_BUILD_ARCH  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
 export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
-export CFLAGS   := $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
-export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
+export CFLAGS   := $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) -std=c++11
+export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) -std=c++11
 export LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS)
 
 ifneq (,$(filter $(DEB_BUILD_ARCH),alpha))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/wesnoth.git



More information about the Pkg-games-commits mailing list