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>.
This commit is contained in:
Дмитрий Левин 2014-06-03 12:56:42 +00:00
parent 05cd5b2a04
commit 4182981f6d

6
debian/rules vendored
View File

@ -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