From f16bb8d805d35eee2d7e77da785c46f08835a392 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 14 Aug 2015 12:26:23 -0400 Subject: [PATCH] Link with -z now for full RELRO --- zlib.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zlib.spec b/zlib.spec index 1843a03..aa74e0d 100644 --- a/zlib.spec +++ b/zlib.spec @@ -1,7 +1,7 @@ Summary: The compression and decompression library Name: zlib Version: 1.2.8 -Release: 8%{?dist} +Release: 9%{?dist} # /contrib/dotzlib/ have Boost license License: zlib and Boost Group: System Environment/Libraries @@ -83,7 +83,7 @@ mv ChangeLog.tmp ChangeLog %else export CFLAGS="$RPM_OPT_FLAGS" %endif -export LDFLAGS="$LDFLAGS -Wl,-z,relro" +export LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now" ./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix} make %{?_smp_mflags} @@ -143,6 +143,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %{_libdir}/pkgconfig/minizip.pc %changelog +* Fri Aug 14 2015 Adam Jackson 1.2.8-9 +- Link with -z now for full RELRO + * Fri Jun 19 2015 Fedora Release Engineering - 1.2.8-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild