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 - 2:0.85-3 +- enable hardened build + * Mon Aug 05 2013 Michal Sekletar - 2:0.85-2 - add generate-tarball.sh script