From 4182981f6d025d8e753f3da635df5832c0c6d99d Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 3 Jun 2014 12:56:42 +0000 Subject: [PATCH] debian: enable security hardening features * debian/rules: Follow the advice in https://wiki.debian.org/Hardening and enable maximum hardening as for programs that handle untrusted data. Patch by Markus . --- debian/rules | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index b997182f..52220fa3 100755 --- a/debian/rules +++ b/debian/rules @@ -2,7 +2,11 @@ #export DH_VERBOSE=1 -CFLAGS = -Wall -g +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +CFLAGS += -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 -- 2.40.0