replace hardening build flags with _hardened_build

This commit is contained in:
Miroslav Lichvar 2014-01-10 16:05:04 +01:00
parent c2970ea3cb
commit 4c73b5df85

View File

@ -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