[zlib] - recompiled with -Wl,-z,relro flags

pschiffe pschiffe at fedoraproject.org
Mon Jun 11 14:37:44 UTC 2012


commit b718fe7fd1e9933ef1738c67d3b1576b0d51bbca
Author: Peter Schiffer <pschiffe at redhat.com>
Date:   Mon Jun 11 16:37:20 2012 +0200

    - recompiled with -Wl,-z,relro flags

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


More information about the scm-commits mailing list