[mtr] spec: enable hardened build
Michal Sekletar
msekleta at fedoraproject.org
Tue Oct 8 10:46:23 UTC 2013
commit be24752376756314f2c322266b1dd2a732f1aa0b
Author: Michal Sekletar <msekleta at redhat.com>
Date: Sat Sep 14 18:37:55 2013 +0200
spec: enable hardened build
Resolves: #1014133
mtr.spec | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/mtr.spec b/mtr.spec
index 6750248..1d442df 100644
--- a/mtr.spec
+++ b/mtr.spec
@@ -1,7 +1,9 @@
+%global _hardened_build 1
+
Summary: A network diagnostic tool
Name: mtr
Version: 0.85
-Release: 2%{?dist}
+Release: 3%{?dist}
Epoch: 2
Group: Applications/Internet
License: GPLv2+
@@ -46,6 +48,9 @@ diagnostic tool.
%patch4 -p1
%build
+export CFLAGS="%{optflags} -fPIE"
+export LDFLAGS="-z now -pie"
+
%configure --enable-gtk2
make %{?_smp_mflags} && mv mtr xmtr && make distclean
%configure --without-gtk
@@ -97,6 +102,9 @@ desktop-file-install \
%{_datadir}/pixmaps/mtr_icon.xpm
%changelog
+* Sat Sep 14 2013 Michal Sekletar <msekleta at redhat.com> - 2:0.85-3
+- enable hardened build
+
* Mon Aug 05 2013 Michal Sekletar <msekleta at redhat.com> - 2:0.85-2
- add generate-tarball.sh script
More information about the scm-commits
mailing list