Disable format-security as it breaks on autogenerated code
authorAlastair McKinstry <mckinstry@debian.org>
Wed, 2 Oct 2019 16:42:11 +0000 (17:42 +0100)
committerAlastair McKinstry <mckinstry@debian.org>
Wed, 2 Oct 2019 16:42:11 +0000 (17:42 +0100)
debian/rules

index 6163941c601617810e0e38b5853705ec7c16e79a..c34075fe4fcc1757d901a1b3fa1b89db9a40fe67 100755 (executable)
@@ -10,6 +10,8 @@
 export DH_VERBOSE=1
 export DH_OPTIONS=-v
 
+CXXFLAGS:= $(filter-out -Werror=format-security, (shell dpkg-buildflags --get CXXFLAGS))
+
 DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
 ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))