File: hardening-rules.patch

package info (click to toggle)
cb2bib 2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,584 kB
  • sloc: cpp: 28,329; sh: 516; makefile: 10
file content (20 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Patch to implement the hardening rules as defined by Debian
diff --git a/src/src.pro b/src/src.pro
index 6450fa5..48378a2 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -211,3 +211,14 @@ macx {
 #   Set Library data
 #   QMAKE_BUNDLE_DATA += externtools
 }
+
+# Addition by FRusconi <lopippo@debian.org> to security-harden the
+# binary.
+
+QMAKE_CPPFLAGS *= $$system(dpkg-buildflags --get CPPFLAGS)
+QMAKE_CFLAGS   *= $$system(dpkg-buildflags --get CFLAGS)
+QMAKE_CXXFLAGS *= $$system(dpkg-buildflags --get CXXFLAGS)
+
+message($$QMAKE_CPPFLAGS)
+message($$QMAKE_CFLAGS)
+message($$QMAKE_CXXFLAGS)