aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-06-23 21:09:19 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-07-01 13:55:27 +0200
commit7d66941aebf923a3311a07671e69160487c3f8f0 (patch)
treefdb0a398ec17cd913531707f710c1ff05023c15a /debian/rules
parent56f776ced32538d5a33c637f20dfc9cb76a17f90 (diff)
downloadnx-libs-7d66941aebf923a3311a07671e69160487c3f8f0.tar.gz
nx-libs-7d66941aebf923a3311a07671e69160487c3f8f0.tar.bz2
nx-libs-7d66941aebf923a3311a07671e69160487c3f8f0.zip
debian/rules: Use buildflags.mk from dpkg-dev. Enable bindnow hardening flag.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules7
1 files changed, 3 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules
index ec7616f7a..e41f97c81 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,10 +2,9 @@
NULL =
-export CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
-export CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
-export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
-export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
export LIBDIR = "/usr/lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)"
export INCLUDEDIR = "/usr/include/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)"