Package: qwtplot3d / 0.2.7+svn191+gcc7-3

04_hardening.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Adds hardening to makefile
--- a/qwtplot3d.pro
+++ b/qwtplot3d.pro
@@ -1,6 +1,11 @@
 # pro file for building the makefile for qwtplot3d
 #
 
+QMAKE_CPPFLAGS *= $(shell dpkg-buildflags --get CPPFLAGS)
+QMAKE_CFLAGS   *= $(shell dpkg-buildflags --get CFLAGS) -D_FORTIFY_SOURCE=2
+QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS)  -D_FORTIFY_SOURCE=2
+QMAKE_LFLAGS   *= $(shell dpkg-buildflags --get LDFLAGS)
+
 TARGET            = qwtplot3d-qt$$QT_MAJOR_VERSION
 # Install directives
 INSTALLBASE	  = /usr