diff options
author | Simon McVittie <smcv@debian.org> | 2011-06-01 14:42:01 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2011-06-01 14:42:01 +0100 |
commit | 2f9806511294feb614da3c217a8b992527eb6e68 (patch) | |
tree | e72e31f821a6048840786e46728e384d01eff6aa /debian/rules | |
parent | dbe142d163a78eafa2abf1d4b0d32ab9c5ff28fc (diff) | |
download | dbus-2f9806511294feb614da3c217a8b992527eb6e68.tar.gz |
Use hardening-includes to get PIE and stuff
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules index 7fca39a1..4f57d924 100755 --- a/debian/rules +++ b/debian/rules @@ -11,8 +11,14 @@ libdbusN := $(shell sed -rn 's/Package:[[:space:]]*(libdbus-[0-9-]+)[[:space:]]* multiarch := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) cflags := $(shell dpkg-buildflags --get CFLAGS) -ldflags := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed -common_configure_flags = \ +ldflags := $(shell dpkg-buildflags --get LDFLAGS) +ldflags += -Wl,--as-needed + +include /usr/share/hardening-includes/hardening.make +cflags += $(HARDENING_CFLAGS) +ldflags += $(HARDENING_LDFLAGS) + +common_configure_flags := \ --disable-libaudit \ --libexecdir=\$${prefix}/lib/dbus-1.0 \ --htmldir=\$${prefix}/share/doc/dbus \ |