From 80a23771739ac09be1c9a21b6e43f11522ade2f3 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 21 Mar 2010 12:32:23 +0000 Subject: [PATCH] - added LFS patch to export *64 functions from DLL - release 3 Changed files: crossmingw32-zlib-LFS.patch -> 1.1 crossmingw32-zlib.spec -> 1.25 --- crossmingw32-zlib-LFS.patch | 12 ++++++++++++ crossmingw32-zlib.spec | 6 ++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 crossmingw32-zlib-LFS.patch diff --git a/crossmingw32-zlib-LFS.patch b/crossmingw32-zlib-LFS.patch new file mode 100644 index 0000000..2fbbaca --- /dev/null +++ b/crossmingw32-zlib-LFS.patch @@ -0,0 +1,12 @@ +--- zlib-1.2.4/win32/zlib.def.orig 2010-03-12 18:56:34.000000000 +0100 ++++ zlib-1.2.4/win32/zlib.def 2010-03-21 11:57:55.378704379 +0100 +@@ -72,3 +72,9 @@ + inflateSyncPoint + get_crc_table + inflateUndermine ++; LFS ++ adler32_combine64 ++ crc32_combine64 ++ gzopen64 ++ gzseek64 ++ gztell64 diff --git a/crossmingw32-zlib.spec b/crossmingw32-zlib.spec index 9fc59ea..4e59876 100644 --- a/crossmingw32-zlib.spec +++ b/crossmingw32-zlib.spec @@ -14,11 +14,12 @@ Summary: Library for compression and decompression - Ming32 cross version Summary(pl.UTF-8): Biblioteka z podprogramami do kompresji i dekompresji - wersja skrośna dla Ming32 Name: crossmingw32-%{realname} Version: 1.2.4 -Release: 2 +Release: 3 License: BSD Group: Development/Libraries Source0: http://www.zlib.net/current/%{realname}-%{version}.tar.gz # Source0-md5: 47f6ed51b3c83a8534f9228531effa18 +Patch0: %{name}-LFS.patch URL: http://www.zlib.org/ BuildRequires: crossmingw32-gcc BuildRequires: sed >= 4.0 @@ -87,6 +88,7 @@ zlib - biblioteka DLL dla Windows. %prep %setup -q -n %{realname}-%{version} +%patch0 -p1 %if %{with asmopt} %ifarch i686 athlon @@ -100,7 +102,7 @@ cp contrib/asm686/match.S . CXX="%{__cxx}" \ AR="%{target}-ar" \ RANLIB="%{target}-ranlib" \ - CFLAGS="-D_REENTRANT %{rpmcflags}%{?with_asmopt: -DASMV}" \ + CFLAGS="-D_REENTRANT -D_LARGEFILE64_SOURCE=1 %{rpmcflags}%{?with_asmopt: -DASMV}" \ DLLWRAP="%{target}-dllwrap" \ RC="%{target}-windres" \ CP="install" \ -- 2.43.0