From 14a168d83b9a1358524a46ddc5be55a524cbdf7b Mon Sep 17 00:00:00 2001
From: Joerg Steffens <joerg.steffens@bareos.com>
Date: Tue, 19 Feb 2013 17:14:55 +0100
Subject: [PATCH 2/2] disable hardening

---
 debian/rules |    7 ++++++-
 1 Datei geändert, 6 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)

diff --git a/debian/rules b/debian/rules
index 7e68870..b04cafd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,7 +17,12 @@ DH_VERBOSE = 1
 DH_OPTIONS = -v
 
 # This disables the hardening flags which lead to LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro which breaks the config engine.
-DEB_BUILD_HARDENING = 0
+#DEB_BUILD_HARDENING = 0
+#DEB_LDFLAGS_SET =
+export DEB_BUILD_MAINT_OPTIONS = hardening=-all
+DPKG_EXPORT_BUILDFLAGS = 1
+-include /usr/share/dpkg/buildflags.mk
+
 
 DAEMON_USER = bareos
 DAEMON_GROUP = bareos
-- 
1.7.10.4

