[ntp] replace hardening build flags with _hardened_build
Miroslav Lichvar
mlichvar at fedoraproject.org
Mon Dec 9 16:14:35 UTC 2013
commit 59d5026eefe81261e1f8fe691944171cfb9cf717
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Mon Dec 9 15:46:15 2013 +0100
replace hardening build flags with _hardened_build
ntp.spec | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/ntp.spec b/ntp.spec
index 0cd6252..c1b9309 100644
--- a/ntp.spec
+++ b/ntp.spec
@@ -1,3 +1,5 @@
+%global _hardened_build 1
+
Summary: The NTP daemon and utilities
Name: ntp
Version: 4.2.6p5
@@ -218,8 +220,7 @@ touch ntpd/ntpd-opts.texi util/ntp-keygen-opts.texi
%build
sed -i 's|$CFLAGS -Wstrict-overflow|$CFLAGS|' configure sntp/configure
-export CFLAGS="$RPM_OPT_FLAGS -fPIE -fno-strict-aliasing -fno-strict-overflow"
-export LDFLAGS="-pie -Wl,-z,relro,-z,now"
+export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fno-strict-overflow"
%configure \
--sysconfdir=%{_sysconfdir}/ntp/crypto \
--with-openssl-libdir=%{_libdir} \
More information about the scm-commits
mailing list