summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2012-06-03 01:01:45 +0200
committerAlessio Treglia <alessio@debian.org>2012-06-03 01:01:45 +0200
commit231bfc24b45588589363dc34a6a80cf4bbd32fef (patch)
treec292c88e5cf8e6ca3e9d13e3220c9a3751389410
parent59be50a370903fd5462c737a4306feb47c6eb09c (diff)
Enable hardening flags.
-rwxr-xr-xdebian/rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 8f3cd40..da46680 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,10 @@
#!/usr/bin/make -f
+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)
+
LDFLAGS+=-Wl,--as-needed
%: