Skip to content

Commit

Permalink
debian: Add hardening, recommended by lintian
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Nilsson <[email protected]>
  • Loading branch information
troglobit committed Feb 23, 2020
1 parent d65245a commit e198142
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/make -f
# export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -W -Wall -Wextra -O3
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))

include /usr/share/dpkg/default.mk # provides DEB_VERSION

%:
dh $@ --with autoreconf
Expand Down

0 comments on commit e198142

Please sign in to comment.