Package: mutt
Version: 1.6.0-1
Severity: important
Tags: patch

Attached patch enables hardening feature to debian/rules.

-- 
   Elimar
>From 12451565fcca81736c508fc628fdace356e13143 Mon Sep 17 00:00:00 2001
From: Elimar Riesebieter <riese...@lxtec.de>
Date: Tue, 3 May 2016 08:43:23 +0200
Subject: [PATCH] Added hardening to rules

---
 debian/rules | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index 84c10f4..bbb8aa0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,11 @@
 include /usr/share/quilt/quilt.make
 QUILT = QUILT_PATCHES=$(QUILT_PATCH_DIR) quilt --quiltrc /dev/null
 
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
 ###################### user serviceable parts ######################
 
 ###
@@ -78,10 +83,10 @@ ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
 endif
 
 # CFLAGS
-CFLAGS = `dpkg-buildflags --get CFLAGS`
+# CFLAGS = `dpkg-buildflags --get CFLAGS`
 CFLAGS += -Wall
-LDFLAGS = `dpkg-buildflags --get LDFLAGS`
-CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
+# LDFLAGS = `dpkg-buildflags --get LDFLAGS`
+# CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
 CPPFLAGS += -I/usr/include/qdbm
 
 # Directory to make the build on
-- 
2.8.1

Reply via email to