File: hardening.patch

package info (click to toggle)
smtube 18.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 2,384 kB
  • sloc: cpp: 3,547; makefile: 216; sh: 21
file content (29 lines) | stat: -rw-r--r-- 757 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Last-Update: 2018-06-20
Forwarded: not-needed
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: Hardening

---
 src/smtube.pro | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/smtube.pro b/src/smtube.pro
index 8e25546..ee479d2 100644
--- a/src/smtube.pro
+++ b/src/smtube.pro
@@ -5,6 +5,12 @@ QT += network
 CONFIG += release
 #CONFIG += debug
 
+## 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)
+
 DEFINES += USE_PLAYERS
 DEFINES += YT_USE_SCRIPT
 DEFINES += D_BUTTON
-- 
2.17.1