summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gevers <elbrus@debian.org>2020-05-10 17:26:14 +0200
committerAbou Al Montacir <abou.almontacir@sfr.fr>2020-05-10 17:26:14 +0200
commit15e73f86445d560c7ed0452a7965c3d3cdd197be (patch)
treeed70c45a947fbec729ecdd40ffaa3184e60a9019
parent47ac66c0a56af6f4893e8e26e922b975263170a3 (diff)
In order to enable hardening flags we need to pass them to
QMAKE. According to https://wiki.debian.org/Hardening#Notes_for_packages_using_QMake this is the easiest way. Gbp-Pq: Name enable_hardening.patch
-rw-r--r--Qt5Pas.pro6
1 files changed, 5 insertions, 1 deletions
diff --git a/Qt5Pas.pro b/Qt5Pas.pro
index c275146..3b239dc 100644
--- a/Qt5Pas.pro
+++ b/Qt5Pas.pro
@@ -8,7 +8,11 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#******************************************************************************
-
+# As described on 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)
# Binding Release Version 2.6 against Qt5 5.6 LTS release.
# WebKit widgets are disabled until webenginewidgets are implemented.