File: hardening.patch

package info (click to toggle)
zegrapher 3.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,816 kB
  • sloc: cpp: 12,779; xml: 136; sh: 9; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Index: zegrapher/ZeGrapher.pro
===================================================================
--- zegrapher.orig/ZeGrapher.pro
+++ zegrapher/ZeGrapher.pro
@@ -12,6 +12,13 @@ TRANSLATIONS = ZeGrapher_fr.ts \
                ZeGrapher_de.ts \
                ZeGrapher_zh.ts
 
+
+## hardening for Debian
+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)
+
 CONFIG += c++11
 QMAKE_LFLAGS_RELEASE = -s