home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 September / PCpro_2006_09.ISO / files / techtalk / gnupg-w32cli-1.4.4.exe / Src / bzip2-1.diff
Encoding:
Text File  |  2006-06-25  |  1.2 KB  |  40 lines

  1. To include support for BZIP2 compression in GunPG for W32, the patch
  2. below should be applied to a stock bzip2-1.0.2 source.  The Build as
  3. usual using the mingw32 cross compiler package from Debian and install
  4. the library and header file on top of the cross compiler installation
  5. (/usr/i586-mingw32msvc/lib/).  Note that for ease of maintenance we
  6. don't use a DLL.                                      [wk 2005-03-14]
  7.  
  8.  
  9. diff -u orig/bzip2-1.0.2/Makefile bzip2-1.0.2/Makefile
  10. --- orig/bzip2-1.0.2/Makefile    2002-01-26 00:34:53.000000000 +0100
  11. +++ bzip2-1.0.2/Makefile    2004-11-03 14:10:45.000000000 +0100
  12. @@ -2,9 +2,9 @@
  13.  SHELL=/bin/sh
  14.  
  15.  # To assist in cross-compiling
  16. -CC=gcc
  17. -AR=ar
  18. -RANLIB=ranlib
  19. +CC=i586-mingw32msvc-gcc
  20. +AR=i586-mingw32msvc-ar
  21. +RANLIB=i586-mingw32msvc-ranlib
  22.  LDFLAGS=
  23.  
  24.  # Suitably paranoid flags to avoid bugs in gcc-2.7
  25. diff -u orig/bzip2-1.0.2/bzlib.h bzip2-1.0.2/bzlib.h
  26. --- orig/bzip2-1.0.2/bzlib.h    2001-12-30 03:19:45.000000000 +0100
  27. +++ bzip2-1.0.2/bzlib.h    2004-11-03 14:32:41.000000000 +0100
  28. @@ -113,7 +114,7 @@
  29.  /* Need a definitition for FILE */
  30.  #include <stdio.h>
  31.  
  32. -#ifdef _WIN32
  33. +#if defined( _WIN32 ) && 0
  34.  #   include <windows.h>
  35.  #   ifdef small
  36.        /* windows.h define small to char */
  37.  
  38.  
  39.  
  40.