Use dpkg-buildflags in Debian rules file.

This commit is contained in:
Simon Kelley
2012-05-28 18:21:59 +01:00
parent 8767ceecd4
commit 97c83bb05b
2 changed files with 7 additions and 6 deletions

1
debian/changelog vendored
View File

@@ -1,6 +1,7 @@
dnsmasq (2.62-1) unstable; urgency=low dnsmasq (2.62-1) unstable; urgency=low
* New upstream. * New upstream.
* Use dpkg-buildflags. (Enables hardening).
-- Simon Kelley <simon@thekelleys.org.uk> Sat, 12 May 2012 15:25:23 +0000 -- Simon Kelley <simon@thekelleys.org.uk> Sat, 12 May 2012 15:25:23 +0000

12
debian/rules vendored
View File

@@ -11,14 +11,14 @@
package=dnsmasq-base package=dnsmasq-base
# policy manual, section 10.1 CFLAGS = $(shell export DEB_BUILD_OPTIONS=$(DEB_BUILD_OPTIONS); dpkg-buildflags --get CFLAGS)
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS = -g -O0 -Wall -W CFLAGS += -Wall -W
else
CFLAGS = -g -O2 -Wall -W LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
endif
COPTS = COPTS =
TARGET = install-i18n TARGET = install-i18n
DEB_BUILD_ARCH_OS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS) DEB_BUILD_ARCH_OS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)