[PATCH] build: define _hardened_build in RPM spec template

Jim Meyering meyering at redhat.com
Mon Apr 16 10:31:56 UTC 2012


* iwhd.spec.in: Define _hardened_build, per Fedora guidelines:
http://fedoraproject.org/wiki/Packaging:Guidelines#PIE
---
 iwhd.spec.in |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/iwhd.spec.in b/iwhd.spec.in
index 4781487..653e2ac 100644
--- a/iwhd.spec.in
+++ b/iwhd.spec.in
@@ -37,6 +37,9 @@ BuildRequires: systemd-units
 %define _unitdir /lib/systemd/system
 %endif

+# Per http://fedoraproject.org/wiki/Packaging:Guidelines#PIE
+%define _hardened_build 1
+
 # mongodb-server is required at build time so make check succeeds
 BuildRequires: mongodb-server

--
1.7.10.169.g146fe


More information about the iwhd-devel mailing list