[Pkg-php-commits] [php/debian-sid] Build with the hardening wrapper

Raphael Geissert geissert at debian.org
Sun Feb 7 23:17:14 UTC 2010


---
 debian/control |    1 +
 debian/rules   |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/debian/control b/debian/control
index ce58009..6c21d5c 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,7 @@ Build-Depends: apache2-prefork-dev,
 	       firebird2.1-dev [amd64 armel i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 sparc] | firebird2.0-dev [i386 amd64 powerpc sparc],
 	       flex,
 	       freetds-dev,
+	       hardening-wrapper,
 	       libapr1-dev (>= 1.2.7-8),
 	       libbz2-dev,
 	       libc-client-dev,
diff --git a/debian/rules b/debian/rules
index 8e01d0c..ef3d5de 100755
--- a/debian/rules
+++ b/debian/rules
@@ -81,6 +81,12 @@ ifneq (,$(filter $(DEB_HOST_ARCH),amd64 armel i386 ia64 kfreebsd-amd64 kfreebsd-
 		--with-pdo-firebird=shared,/usr
 endif
 
+# enable the hardening wrapper
+DEB_BUILD_HARDENING = 1
+# but disable PIE
+DEB_BUILD_HARDENING_PIE = 0
+export DEB_BUILD_HARDENING DEB_BUILD_HARDENING_PIE
+
 COMMON_CONFIG=--build=$(DEB_BUILD_GNU_TYPE) \
 		--host=$(DEB_HOST_GNU_TYPE) \
 		--sysconfdir=/etc \
-- 
1.6.3.3





More information about the Pkg-php-commits mailing list