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

sebastic-guest pushed a commit to branch master
in repository proj.

commit d958f1b019f45df5aa8ed8e691b68218906fc5af
Author: Bas Couwenberg <sebas...@xs4all.nl>
Date:   Sun Apr 6 22:00:29 2014 +0200

    Use hardening build flags.
---
 debian/changelog | 1 +
 debian/rules     | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5554520..43fa375 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ proj (4.8.0-3) UNRELEASED; urgency=low
   * Add gbp.conf to use pristine-tar by default.
   * Use dh-autoreconf for retooling.
   * Bump debhelper compatibility to 9.
+  * Use hardening build flags.
 
  -- Bas Couwenberg <sebas...@xs4all.nl>  Sun, 06 Apr 2014 21:02:28 +0200
 
diff --git a/debian/rules b/debian/rules
index 4be5d49..eed46c5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,9 @@
 
 export DH_ALWAYS_EXCLUDE=CVS:.svn
 
-CFLAGS=-O2 -Wall
+CPPFLAGS=$(shell dpkg-buildflags --get CPPFLAGS)
+LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
+CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 CFLAGS += -g
 endif
@@ -42,7 +44,7 @@ config.status:
 build: config build-stamp
 build-stamp:
        dh_testdir
-       $(MAKE) CFLAGS="$(CFLAGS)"
+       $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)"
        touch $@
 
 clean: 

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

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to