[neon/extras/clazy/Neon/release] debian: build with c++14 for now
Pino Toscano
null at kde.org
Wed Sep 7 22:14:02 BST 2022
Git commit 13f56224ad9a2831012d62699cd37aa214fe8852 by Pino Toscano.
Committed on 22/11/2021 at 20:56.
Pushed by jriddell into branch 'Neon/release'.
build with c++14 for now
M +2 -0 debian/changelog
M +2 -1 debian/rules
https://invent.kde.org/neon/extras/clazy/commit/13f56224ad9a2831012d62699cd37aa214fe8852
diff --git a/debian/changelog b/debian/changelog
index 0adfdb7..696ae0c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ clazy (1.10-2) UNRELEASED; urgency=medium
* Fix -DREADLINK_CMD:FILEPATH to be /bin/readlink, like the actual file path
provided by coreutils.
* Bump Standards-Version to 4.6.0, no changes required.
+ * Add -std=gnu++14 to the CXXFLAGS to build with C++14, as it seems it fails
+ to build with C++17 (default of GCC 11).
-- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org> Mon, 22 Nov 2021 21:24:42 +0100
diff --git a/debian/rules b/debian/rules
index 8ebcc0c..4a2bbe8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,8 @@ include /usr/share/dpkg/architecture.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# LLVM 6.0 headers produce lots of class-memaccess warnings
-export DEB_CXXFLAGS_MAINT_APPEND = -Wno-class-memaccess
+# force C++14, as it fails to build with C++17
+export DEB_CXXFLAGS_MAINT_APPEND = -Wno-class-memaccess -std=gnu++14
archs_that_need_atomic = armel
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(archs_that_need_atomic)))
More information about the Neon-commits
mailing list