From b718fe7fd1e9933ef1738c67d3b1576b0d51bbca Mon Sep 17 00:00:00 2001 From: Peter Schiffer Date: Mon, 11 Jun 2012 16:37:20 +0200 Subject: [PATCH] - recompiled with -Wl,-z,relro flags --- zlib.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/zlib.spec b/zlib.spec index 59173fd..d0e97da 100644 --- a/zlib.spec +++ b/zlib.spec @@ -1,7 +1,7 @@ Summary: The zlib compression and decompression library Name: zlib Version: 1.2.7 -Release: 1%{?dist} +Release: 2%{?dist} Group: System Environment/Libraries Source: http://www.zlib.net/zlib-%{version}.tar.bz2 Patch0: zlib-1.2.5-minizip-fixuncrypt.patch @@ -61,14 +61,14 @@ iconv -f windows-1252 -t utf-8 ChangeLog.tmp mv ChangeLog.tmp ChangeLog %build -CFLAGS=$RPM_OPT_FLAGS ./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix} +export LDFLAGS="$LDFLAGS -Wl,-z,relro" +export CFLAGS=$RPM_OPT_FLAGS +./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix} make %{?_smp_mflags} cd contrib/minizip autoreconf --install -%configure --enable-static=no CPPFLAGS="-I/$RPM_BUILD_DIR/%{name}-%{version}-%{release}" - LDFLAGS="-L/$RPM_BUILD_DIR/%{name}-%{version}-%{release}" - +%configure --enable-static=no make %{?_smp_mflags} %check @@ -133,6 +133,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/pkgconfig/minizip.pc %changelog +* Mon Jun 11 2012 Peter Schiffer - 1.2.7-2 +- recompiled with -Wl,-z,relro flags + * Thu May 10 2012 Peter Schiffer - 1.2.7-1 - resolves: #785726 - resolves: #805874