summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog6
-rwxr-xr-xdebian/rules3
2 files changed, 9 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 59b017f..d4d5d33 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+xsd (4.0.0-10) UNRELEASED; urgency=medium
+
+ * Add -std=gnu++11 to CXXFLAGS fix fix FTBFS with GCC-11 (Closes: #984405).
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sat, 21 Aug 2021 20:19:15 +0200
+
xsd (4.0.0-9) unstable; urgency=medium
* Fix FTBFS with gcc-10 (Closes: #957999):
diff --git a/debian/rules b/debian/rules
index a3031ce..b44adc6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,6 +20,9 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export verbose=1
+export CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS)
+export CXXFLAGS += -std=gnu++11
+
%:
dh $@