Commit 2d99e087 authored by Steve Langasek's avatar Steve Langasek
Browse files

Replace build flag handling in debian/rules with debhelper compat 9 and

dpkg-buildflags.
parent 2b0ab6b4
......@@ -4,6 +4,8 @@ mountall (2.37) UNRELEASED; urgency=low
* Mark myself as maintainer, with Scott and James as uploaders.
* Drop maintainer scripts, only used for upgrades from natty and earlier
and no longer relevant post-precise.
* Replace build flag handling in debian/rules with debhelper compat 9 and
dpkg-buildflags.
-- Steve Langasek <steve.langasek@ubuntu.com> Fri, 18 May 2012 22:38:55 -0700
......
......@@ -4,7 +4,7 @@ Priority: required
Maintainer: Steve Langasek <vorlon@debian.org>
Uploaders: Scott James Remnant <scott@ubuntu.com>, James Hunt <james.hunt@ubuntu.com>
Standards-Version: 3.8.0.0
Build-Depends: debhelper (>= 7.3.15ubuntu2~boot7), pkg-config (>= 0.22), libnih-dev (>= 1.0.0), libnih-dbus-dev (>= 1.0.0), nih-dbus-tool (>= 1.0.0), libdbus-1-dev (>= 1.2.16), libexpat1-dev (>= 2.0.0), libudev-dev (>= 146), libplymouth-dev (>= 0.8.1-3)
Build-Depends: debhelper (>= 9.20120410), pkg-config (>= 0.22), libnih-dev (>= 1.0.0), libnih-dbus-dev (>= 1.0.0), nih-dbus-tool (>= 1.0.0), libdbus-1-dev (>= 1.2.16), libexpat1-dev (>= 2.0.0), libudev-dev (>= 146), libplymouth-dev (>= 0.8.1-3)
Vcs-Bzr: lp:ubuntu/mountall
Package: mountall
......
#!/usr/bin/make -f
%:
dh $@
CFLAGS = -Wall -g -fstack-protector -fPIE
LDFLAGS = -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -pie
export DEB_BUILD_MAINT_OPTIONS=hardening=+pie
export DEB_CFLAGS_MAINT_APPEND=-Wall
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed -Wl,-z,now
# Disable optimisations if noopt found in $DEB_BUILD_OPTIONS
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
LDFLAGS += -Wl,-O0
DEB_LDFLAGS_MAINT_APPEND += -Wl,-O0
else
CFLAGS += -Os
LDFLAGS += -Wl,-O1
DEB_CFLAGS_MAINT_APPEND += -Os
DEB_LDFLAGS_MAINT_APPEND += -Wl,-O1
endif
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
--exec-prefix=
dh_auto_configure -- --exec-prefix=
make -C po update-po
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