[telnet] spec: enable hardened build

Michal Sekletar msekleta at fedoraproject.org
Wed Jul 17 15:27:48 UTC 2013


commit 6a56a2fe75998f2ebb425a3055790702657b7e6b
Author: Michal Sekletar <msekleta at redhat.com>
Date:   Wed Jul 17 16:22:16 2013 +0200

    spec: enable hardened build

 telnet.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/telnet.spec b/telnet.spec
index 44074a2..cda2db4 100644
--- a/telnet.spec
+++ b/telnet.spec
@@ -1,7 +1,9 @@
+%global _hardened_build 1
+
 Summary: The client program for the Telnet remote login protocol
 Name: telnet
 Version: 0.17
-Release: 56%{?dist}
+Release: 57%{?dist}
 Epoch: 1
 License: BSD
 Group: Applications/Internet
@@ -90,7 +92,7 @@ mv telnet telnet-NETKIT
     export CC_FLAGS="$RPM_OPT_FLAGS -fpie"
 %endif
 
-export LD_FLAGS="$LD_FLAGS -pie"
+export LD_FLAGS="$LD_FLAGS -z now -pie"
 
 sh configure --with-c-compiler=gcc 
 perl -pi -e '
@@ -147,6 +149,9 @@ install -p -m644 %SOURCE6 ${RPM_BUILD_ROOT}%{_unitdir}/telnet.socket
 %{_mandir}/man8/telnetd.8*
 
 %changelog
+* Wed Jul 17 2013 Michal Sekletar <msekleta at redhat.com> - 1:0.17-57
+- enable hardened build
+
 * Mon May 06 2013 Michal Sekletar <msekleta at redhat.com> - 1:0.17-56
 - telnet-server will use systemd socket based activation instead of xinetd
 


More information about the scm-commits mailing list