aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2020-08-12 18:53:20 +0000
committerSteve Langasek <steve.langasek@canonical.com>2020-08-12 18:53:20 +0000
commitdfd785460062dc0ed8b70920ff269e6060f76b11 (patch)
tree38abfde70aebac7f48d8b7aee154bdd6f67623e0 /debian/rules
parent283648f823577132d809a3f2e23ecb26ad9f187c (diff)
downloadpam-dfd785460062dc0ed8b70920ff269e6060f76b11.tar.gz
pam-dfd785460062dc0ed8b70920ff269e6060f76b11.tar.bz2
pam-dfd785460062dc0ed8b70920ff269e6060f76b11.zip
Add hardening+=bindnow to build options, per lintian.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index 3b5e24ef..f8ad3c18 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,8 @@
DEB_LDFLAGS_MAINT_APPEND := -Wl,-z,defs
DEB_CFLAGS_MAINT_APPEND := $(shell getconf LFS_CFLAGS)
-export DEB_LDFLAGS_MAINT_APPEND DEB_CFLAGS_MAINT_APPEND
+DEB_BUILD_MAINT_OPTIONS := hardening=+bindnow
+export DEB_LDFLAGS_MAINT_APPEND DEB_CFLAGS_MAINT_APPEND DEB_BUILD_MAINT_OPTIONS
ifeq ($(shell dpkg-architecture -qDEB_BUILD_ARCH_OS),hurd)
DEB_LDFLAGS_MAINT_APPEND += -lpthread
endif