Skip to content
Browse files
Enable all hardening buildflags.
Adds ld -z now & -fPIE -pie.
  • Loading branch information
sebastic committed Mar 25, 2016
1 parent 8a133dd commit 83d823e76d714fe3cc3bb82e6befa69e953e9f1d
Showing with 3 additions and 0 deletions.
  1. +3 −0 debian/rules
@@ -7,6 +7,9 @@
# This has to be exported to make some magic below work.

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

0 comments on commit 83d823e

Please sign in to comment.