From c7fdd6058e2ebd3d29b0144652f7cccdfb7898f5 Mon Sep 17 00:00:00 2001 From: Modestas Vainius Date: Wed, 27 Jun 2012 21:20:08 +0300 Subject: [PATCH] Enable hardening flags (by appending CPPFLAGS to C(XX)FLAGS). --- debian/changelog | 1 + debian/rules | 3 +++ 2 files changed, 4 insertions(+) diff --git a/debian/changelog b/debian/changelog index d66ecbb9b..1f56c4858 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,7 @@ cmake (2.8.9~rc1-1) UNRELEASED; urgency=low - backport_module_no_soname.diff; - manpage_fixes.diff. * Drop cmake-{qt,curses}-gui.lintian-overrides, not needed with newer lintian. + * Enable hardening flags (by appending CPPFLAGS to C(XX)FLAGS). -- Modestas Vainius Wed, 27 Jun 2012 20:53:34 +0300 diff --git a/debian/rules b/debian/rules index 07682749b..fe2f4ea44 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,8 @@ #!/usr/bin/make -f +export DEB_CPPFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS) +export DEB_CFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS) + ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) BOOTSTRAP_PARALLEL = --parallel=$(NUMJOBS)