From ef59f87e1a43b44e49eef3dc50c596bfda37ff4a Mon Sep 17 00:00:00 2001 From: Jakob Haufe Date: Thu, 5 Jul 2012 00:20:21 +0200 Subject: [PATCH] Enable hardening buildflags --- debian/changelog | 6 ++++++ debian/rules | 11 ++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 65c32816..02bc32b9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +glabels (3.0.0-4) UNRELEASED; urgency=low + + * Enable hardening buildflags + + -- Jakob Haufe Thu, 05 Jul 2012 00:07:37 +0200 + glabels (3.0.0-3) unstable; urgency=low * Remove obsolete configure options diff --git a/debian/rules b/debian/rules index df99e583..429d75ea 100755 --- a/debian/rules +++ b/debian/rules @@ -8,6 +8,14 @@ # $Id: rules 23938 2010-04-21 17:43:11Z didrocks-guest $ # ==================================================================== +# Remove excess dependencies +export DEB_LDFLAGS_MAINT_APPEND += -Wl,--as-needed + +# Hardening flags +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_CFLAGS_MAINT_APPEND = -Wall +include /usr/share/dpkg/buildflags.mk + # CDBS classes & rules include /usr/share/cdbs/1/class/gnome.mk include /usr/share/cdbs/1/rules/debhelper.mk @@ -16,9 +24,6 @@ include /usr/share/cdbs/1/rules/utils.mk # Compilation options DEB_CONFIGURE_EXTRA_FLAGS := --with-libebook -# Remove excess dependencies -DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS=-Wl,--as-needed - # Debhelper arguments DEB_DH_INSTALL_ARGS := --sourcedir=debian/tmp --list-missing -- 2.39.5