Source: gddrescue
Version: 1.19-1
Severity: normal
Tags: patch
Hi Maintainer
The attached patch enables hardening and passes CXX, CPPFLAGS, CXXFLAGS
and LDFLAGS to ddrescue's configure script.
This should clear the Lintian 'hardening-no-relro' warning and the
buildd log scanner 'dpkg-buildflags-missing' warning.
Regards
Graham
diff -Nru gddrescue-1.19/debian/rules gddrescue-1.19/debian/rules
--- gddrescue-1.19/debian/rules 2014-10-06 15:20:33.000000000 +0200
+++ gddrescue-1.19/debian/rules 2015-06-10 10:56:16.000000000 +0200
@@ -1,8 +1,16 @@
#!/usr/bin/make -f
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%:
dh $@
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ CXX='$(CXX)' \
+ CPPFLAGS='$(CPPFLAGS)' \
+ CXXFLAGS='$(CXXFLAGS)' \
+ LDFLAGS='$(LDFLAGS)'
+
override_dh_installinfo:
rm -f $(CURDIR)/debian/gddrescue/usr/share/info/dir