[chrony] replace hardening build flags with _hardened_build
Miroslav Lichvar
mlichvar at fedoraproject.org
Fri Jan 31 17:19:07 UTC 2014
commit 4c73b5df85c53290e3bbae192ce431cbb911e8be
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Fri Jan 10 16:05:04 2014 +0100
replace hardening build flags with _hardened_build
chrony.spec | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/chrony.spec b/chrony.spec
index 21d3b89..9299f80 100644
--- a/chrony.spec
+++ b/chrony.spec
@@ -1,3 +1,5 @@
+%global _hardened_build 1
+
Name: chrony
Version: 1.29
Release: 3%{?dist}
@@ -47,15 +49,6 @@ sed -e 's|VENDORZONE\.|%{vendorzone}|' < %{SOURCE1} > chrony.conf
touch -r %{SOURCE1} chrony.conf
%build
-CFLAGS="$RPM_OPT_FLAGS"
-%ifarch %{sparc}
-CFLAGS="$CFLAGS -fPIE"
-%else
-CFLAGS="$CFLAGS -fpie"
-%endif
-export CFLAGS
-export LDFLAGS="-pie -Wl,-z,relro,-z,now"
-
%configure \
--docdir=%{_docdir} \
--with-sendmail=%{_sbindir}/sendmail
More information about the scm-commits
mailing list