Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Enable all hardening buildflags.
Adds ld -z now & -fPIE -pie.
  • Loading branch information
sebastic committed Mar 25, 2016
1 parent 8a133dd commit 83d823e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions debian/rules
Expand Up @@ -7,6 +7,9 @@
# This has to be exported to make some magic below work.
export DH_OPTIONS

# 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)
Expand Down

0 comments on commit 83d823e

Please sign in to comment.