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:
parent
05cd5b2a04
commit
4182981f6d
6
debian/rules
vendored
6
debian/rules
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user