[Pkg-voip-commits] [sipsak] 10/19: Enable all hardening flags

Victor Seva vseva at moszumanska.debian.org
Wed Aug 31 09:07:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

vseva pushed a commit to branch master
in repository sipsak.

commit cbc58b206c7e9e14434fc46a8c658f25a20a753c
Author: Guillem Jover <gjover at sipwise.com>
Date:   Mon Jul 4 13:03:39 2016 +0200

    Enable all hardening flags
---
 debian/changelog | 1 +
 debian/rules     | 8 ++++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5f67b24..0e21a42 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ sipsak (0.9.6-3) UNRELEASED; urgency=medium
   * Add build-indep and build-arch targets to debian/rules, and stop using a
     stamp file.
   * Switch to use the dpkg makefile fragments in debian/rules.
+  * Enable all hardening flags.
 
  -- Guillem Jover <gjover at sipwise.com>  Mon, 04 Jul 2016 12:19:42 +0200
 
diff --git a/debian/rules b/debian/rules
index 6b10793..c4d1458 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,14 +6,18 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DEB_CFLAGS_MAINT_PREPEND = -Wall -std=gnu89
 
 include /usr/share/dpkg/default.mk
 
 config.status: configure
 	dh_testdir
-	# Add here commands to configure the package.
-	CFLAGS="$(CFLAGS)" ./configure \
+
+	./configure \
+		CPPFLAGS="$(CPPFLAGS)" \
+		CFLAGS="$(CFLAGS)" \
+		LDFLAGS="$(LDFLAGS)" \
 		--host=$(DEB_HOST_GNU_TYPE) \
 		--build=$(DEB_BUILD_GNU_TYPE) \
 		--prefix=/usr \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/sipsak.git



More information about the Pkg-voip-commits mailing list