From 1aaaaba13cba70e9ddde9889a2f162d8135af536 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Thu, 2 Dec 2021 09:36:17 -0500 Subject: [PATCH] d/rules: Export all hardening flags. --- debian/rules | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/rules b/debian/rules index 08c419e..84d8b2c 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,13 @@ #!/usr/bin/make -f +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + %: dh $@ --sourcedirectory=Src +override_dh_auto_build: + $(MAKE) -C Src CFLAGS="$(CPPFLAGS) $(CFLAGS)" \ + COPTS="$(CPPFLAGS) $(LDFLAGS)" + # just use dh_install* instead of upstream's "make install" override_dh_auto_install: