[hdf4] 04/05: Enable dpkg-buildflags (hardening etc)

Johan Van de Wauw johanvdw-guest at moszumanska.debian.org
Wed Aug 27 20:10:10 UTC 2014


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

johanvdw-guest pushed a commit to branch master
in repository hdf4.

commit 381ee55a357079aaf28439c1597a8c1ad197032a
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date:   Mon Aug 18 17:19:02 2014 +0200

    Enable dpkg-buildflags (hardening etc)
---
 debian/rules | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/debian/rules b/debian/rules
index 95d6435..a3f4663 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,11 +18,8 @@ CXX	:= g++
 LIBS    := -ljpeg -lz -lm 
 
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-	CFLAGS = -g -O0
-	LDFLAGS = -g
-else
-	CFLAGS = -O2 
-	LDFLAGS = 
+	CFLAGS = $(shell dpkg-buildflags --get CFLAGS; dpkg-buildflags --get CPPFLAGS)
+	LDFLAGS = $(shell dpkg-buildflags --get  LDFLAGS)
 endif
 
 ifneq (,$(findstring verbose,$(DEB_BUILD_OPTIONS)))

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



More information about the Pkg-grass-devel mailing list