From: Jakob Haufe Date: Wed, 4 Jul 2012 22:20:21 +0000 (+0200) Subject: Enable hardening buildflags X-Git-Tag: debian/3.0.1-1~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ef59f87e1a43b44e49eef3dc50c596bfda37ff4a;p=glabels Enable hardening buildflags --- 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