- recompiled with -Wl,-z,relro flags

This commit is contained in:
Peter Schiffer 2012-06-11 16:37:20 +02:00
parent 679d495f9c
commit b718fe7fd1

View File

@ -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 >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 <pschiffe@redhat.com> - 1.2.7-2
- recompiled with -Wl,-z,relro flags
* Thu May 10 2012 Peter Schiffer <pschiffe@redhat.com> - 1.2.7-1
- resolves: #785726
- resolves: #805874