summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2014-06-03 12:56:42 +0000
committerDmitry V. Levin <ldv@altlinux.org>2014-06-03 13:04:06 +0000
commit4182981f6d025d8e753f3da635df5832c0c6d99d (patch)
treec5fed4a20bf4110e8679f4cf74b055face835807
parent05cd5b2a04aec533e5c46da0ea88e643312565e3 (diff)
downloadstrace-4182981f6d025d8e753f3da635df5832c0c6d99d.tar.gz
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 <waldeck@gmx.de>.
-rwxr-xr-xdebian/rules6
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index b997182f4..52220fa3c 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