From 4c73b5df85c53290e3bbae192ce431cbb911e8be Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 10 Jan 2014 16:05:04 +0100 Subject: [PATCH] replace hardening build flags with _hardened_build --- chrony.spec | 11 ++--------- 1 file 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