From: Graham K. <gr...@eq...> - 2011-01-11 23:20:01
|
On Tue, Jan 11, 2011 at 01:08:17PM +0100, Kern Sibbald wrote: > On Tuesday 11 January 2011 11:58:20 Graham Keeling wrote: > > Hello, > > > > As part of my own backup project, I compiled zlib-1.2.5 for 32bit and 64bit > > Windows. > > Zlib needed a patch to make it work. > > The bacula project uses zlib-1.2.3. > > If wanted, I can upload my zlib patch. > > > > Yes, that would be interesting to see what you have done. It's nothing special, but it might stop somebody else going through the bother of figuring it out. Patch attached (works for win32 and win64). Then for win32: tar -zxvf zlib-1.2.5.tar.gz cd zlib-1.2.5 patch -Np1 < $SRCDIR/zlib.patch make -f win32/Makefile.mingw32 PREFIX=$DEPKGS all make -f win32/Makefile.mingw32 PREFIX=$DEPKGS install And for win64: tar -zxvf zlib-1.2.5.tar.gz cd zlib-1.2.5 patch -Np1 <$SRCDIR/zlib.patch sed 's/mingw32-/x86_64-pc-mingw32-/g' win32/Makefile.mingw32 \ > Makefile.tmp && mv Makefile.tmp win32/Makefile.mingw32 make -f win32/Makefile.mingw32 PREFIX=$DEPKGS all make -f win32/Makefile.mingw32 PREFIX=$DEPKGS install |