From a5e63009a9009ded670f4d7fbb2801dd42adbed4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ferenc=20W=C3=A1gner?= Date: Thu, 31 May 2018 12:44:00 +0200 Subject: [PATCH] Enable hardening --- debian/changelog | 1 + debian/rules | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index a4aa121..8acf0a8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ unscd (0.53-1.1) UNRELEASED; urgency=medium * Non-maintainer upload. * Add systemd notification support for startup error reporting. * Move Homepage into the source package (for the PTS) and use HTTPS. + * Enable hardening. -- Ferenc Wágner Thu, 31 May 2018 12:03:28 +0200 diff --git a/debian/rules b/debian/rules index e5e2a42..a5b6f48 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,7 @@ #!/usr/bin/make -f +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + %: dh $@ --with systemd @@ -8,7 +10,7 @@ override_dh_auto_clean: dh_auto_clean override_dh_auto_build: - gcc $(CFLAGS) $(LDFLAGS) -o nscd nscd.c -lsystemd + gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o nscd nscd.c -lsystemd help2man --name 'nscd which does not hang' \ --include debian/help2man \ --no-info \ -- 2.39.2