From 92f9e184a3c06df5ca857071261a5924f1773c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Hor=C3=A1k?= Date: Fri, 30 Nov 2012 09:02:31 +0100 Subject: [PATCH] Build with full relro --- ypbind.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ypbind.spec b/ypbind.spec index 8d99ddb..e8b607a 100644 --- a/ypbind.spec +++ b/ypbind.spec @@ -1,7 +1,7 @@ Summary: The NIS daemon which binds NIS clients to an NIS domain Name: ypbind Version: 1.36 -Release: 7%{?dist} +Release: 8%{?dist} License: GPLv2 Group: System Environment/Daemons Source0: http://www.linux-nis.org/download/ypbind-mt/ypbind-mt-%{version}.tar.bz2 @@ -61,6 +61,12 @@ also need to install the ypserv package to a machine on your network. autoreconf %build +%ifarch s390 s390x +export CFLAGS="$RPM_OPT_FLAGS -fPIC" +%else +export CFLAGS="$RPM_OPT_FLAGS -fpic" +%endif +export LDFLAGS="$LDFLAGS -pie -Wl,-z,relro,-z,now" %configure --enable-dbus-nm make @@ -133,6 +139,9 @@ install -m 755 %{SOURCE5} $RPM_BUILD_ROOT%{_libexecdir}/ypbind-post-waitbind %doc README NEWS COPYING %changelog +* Fri Nov 30 2012 Honza Horak - 3:1.36-8 +- Build with full relro + * Thu Oct 04 2012 Honza Horak - 3:1.36-7 - Run %%triggerun regardless of systemd_post variable definition