Package: bacula / 7.4.4+dfsg-6

enable-hardening-for-bat.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Enable hardening for bat
Origin: https://wiki.debian.org/Hardening#Notes_for_packages_using_QMake
Bug-Debian: 736461
--- a/src/qt-console/bat.pro.in
+++ b/src/qt-console/bat.pro.in
@@ -183,3 +183,9 @@
 QMAKE_EXTRA_TARGETS += depend
 
 TRANSLATIONS += ts/bat_fr.ts ts/bat_de.ts
+
+### See https://wiki.debian.org/Hardening#Notes_for_packages_using_QMake
+QMAKE_CPPFLAGS *= $(shell dpkg-buildflags --get CPPFLAGS)
+QMAKE_CFLAGS   *= $(shell dpkg-buildflags --get CFLAGS)
+QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS)
+QMAKE_LFLAGS   *= $(shell dpkg-buildflags --get LDFLAGS)