replace hardening build flags with _hardened_build
This commit is contained in:
parent
c2970ea3cb
commit
4c73b5df85
11
chrony.spec
11
chrony.spec
@ -1,3 +1,5 @@
|
|||||||
|
%global _hardened_build 1
|
||||||
|
|
||||||
Name: chrony
|
Name: chrony
|
||||||
Version: 1.29
|
Version: 1.29
|
||||||
Release: 3%{?dist}
|
Release: 3%{?dist}
|
||||||
@ -47,15 +49,6 @@ sed -e 's|VENDORZONE\.|%{vendorzone}|' < %{SOURCE1} > chrony.conf
|
|||||||
touch -r %{SOURCE1} chrony.conf
|
touch -r %{SOURCE1} chrony.conf
|
||||||
|
|
||||||
%build
|
%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 \
|
%configure \
|
||||||
--docdir=%{_docdir} \
|
--docdir=%{_docdir} \
|
||||||
--with-sendmail=%{_sbindir}/sendmail
|
--with-sendmail=%{_sbindir}/sendmail
|
||||||
|
Loading…
Reference in New Issue
Block a user