diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-02-22 00:50:08 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-02-22 22:53:35 +0000 |
commit | c6ac7aec24ec3a425e012031d94fea837758850e (patch) | |
tree | 634f31b49cbe9d2df9c75342308c2f4c1548be8b | |
parent | b196c5e78140a90001870e7ae31ad5a1e818cd22 (diff) | |
download | libconfig-c6ac7aec24ec3a425e012031d94fea837758850e.tar.gz |
Clean up debian/rules
Enable hardened buildflags.
-rw-r--r-- | debian/changelog | 6 | ||||
-rwxr-xr-x | debian/rules | 32 |
2 files changed, 14 insertions, 24 deletions
diff --git a/debian/changelog b/debian/changelog index 3e046bc..8c2ae7f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libconfig (1.4.8-1~exp2) experimental; urgency=low + + * Enable hardened build flags. + + -- Jonathan McCrohan <jmccrohan@gmail.com> Wed, 22 Feb 2012 00:51:01 +0000 + libconfig (1.4.8-1~exp1) experimental; urgency=low * New upstream release (closes: #583528) diff --git a/debian/rules b/debian/rules index efbfd8a..7df4e75 100755 --- a/debian/rules +++ b/debian/rules @@ -1,37 +1,22 @@ #!/usr/bin/make -f # -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -LIBS = $(shell grep '^Package: lib' debian/control | egrep -v '(-doc|-dev)' | sed -e 's@Package: @@' ) # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) -include /usr/share/quilt/quilt.make - -CFLAGS = -Wall -g - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif +CFLAGS = $(dpkg-buildflags --get CFLAGS) +CFLAGS += -Wall +LDFLAGS = $(dpkg-buildflags --get LDFLAGS) +LDFLAGS += defs +CPPFLAGS = $(dpkg-buildflags --get CPPFLAGS) # shared library versions, option 1 version=9 major=9 minor=0 - config.status: configure dh_testdir test -e config.sub -a -L config.sub || \ @@ -39,14 +24,13 @@ config.status: configure test -e config.guess -a -L config.guess || \ ln -sf /usr/share/misc/config.guess config.guess + CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \ ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info - CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" -configure: patch - #$(RM) debian/libconfig9.info debian/shlibs +configure: build: build-arch build-indep @@ -63,7 +47,7 @@ build-stamp: config.status $(MAKE) -C doc pdf touch $@ -clean: unpatch +clean: dh_testdir dh_testroot |