Package: i7z / 0.27.2+git2013.10.12-g5023138-5

qmake-hardening.patch Patch series | 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
Author: Andreas Beckmann <anbe@debian.org>
Description: enable hardening flags while building the GUI
 drop -v flag since it confuses blhc

--- a/GUI/i7z_GUI.pro
+++ b/GUI/i7z_GUI.pro
@@ -2,6 +2,10 @@
 # Automatically generated by qmake (2.01a) Tue Jan 26 22:31:53 2010
 ######################################################################
 
+QMAKE_CFLAGS	*= $(shell dpkg-buildflags --get CFLAGS)   $(shell dpkg-buildflags --get CPPFLAGS)
+QMAKE_CXXFLAGS	*= $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
+QMAKE_LFLAGS	*= $(shell dpkg-buildflags --get LDFLAGS)
+
 TEMPLATE = app
 TARGET = 
 DEPENDPATH += .
@@ -9,7 +13,7 @@ INCLUDEPATH += .
 CONFIG += debug
 CFLAGS +=  #QMAKE_*FLAGS are where the gcc flags should be passed
 CXXFLAGS += 
-QMAKE_CFLAGS += -v -fno-schedule-insns2 -fno-schedule-insns -fno-inline-small-functions -fno-caller-saves 
-QMAKE_CXXFLAGS += -v -fno-schedule-insns2 -fno-schedule-insns -fno-inline-small-functions -fno-caller-saves
+QMAKE_CFLAGS += -fno-schedule-insns2 -fno-schedule-insns -fno-inline-small-functions -fno-caller-saves 
+QMAKE_CXXFLAGS += -fno-schedule-insns2 -fno-schedule-insns -fno-inline-small-functions -fno-caller-saves
 # Input
 SOURCES += i7z_GUI.cpp