Commit da716b9c authored by Colin Watson's avatar Colin Watson

Use dpkg-buildflags to enable hardening options.

parent 168ff5ee
pcmciautils (018-7) UNRELEASED; urgency=low
* Use dpkg-buildflags to enable hardening options.
-- Colin Watson <cjwatson@debian.org> Fri, 22 Jun 2012 13:47:36 +0100
pcmciautils (018-6) unstable; urgency=low
* Prevent the upstream build system calling strip, and rely on dh_strip
......
......@@ -5,7 +5,7 @@ Maintainer: Colin Watson <cjwatson@debian.org>
Uploaders: Per Olofsson <pelle@debian.org>
Standards-Version: 3.9.2
Vcs-Bzr: http://anonscm.debian.org/bzr/pkg-pcmciautils/debian
Build-Depends: debhelper (>= 8.1.0~), flex, bison
Build-Depends: dpkg-dev (>= 1.15.7~), debhelper (>= 8.1.0~), flex, bison
Homepage: http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html
Package: pcmciautils
......
......@@ -14,8 +14,13 @@ else
CROSS := CROSS=$(DEB_HOST_GNU_TYPE)-
endif
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
BUILDFLAGS := CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
override_dh_auto_build:
$(MAKE) $(CROSS) STRIPCMD=true
$(BUILDFLAGS) $(MAKE) $(CROSS) STRIPCMD=true
override_dh_auto_install:
dh_auto_install --destdir=debian/pcmciautils -- \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment