GnuPG 1.2.0 + mingw32

Soh Kok Hong kokhong at post1.com
Wed Oct 16 14:28:04 CEST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I found the original gnupg-1.2.0 sources cannot build mingw32 gpg in
cygwin environment.  These are patches to make it work:


To build GnuPG 1.2.0 with mingw32 USING cygwin:

1. Install the patches below.
2. Run " scripts/build-mingw32"


diff -Naur gnupg-1.2.0.orig/acinclude.m4 gnupg-1.2.0/acinclude.m4
- --- gnupg-1.2.0.orig/acinclude.m4	2002-06-29 22:15:02.000000000 +0800
+++ gnupg-1.2.0/acinclude.m4	2002-10-11 11:02:42.000000000 +0800
@@ -661,7 +661,7 @@
~ AC_DEFUN(GNUPG_SYS_SYMBOL_UNDERSCORE,
~ [tmp_do_check="no"
~ case "${target}" in
- -    i386-emx-os2 | i[3456]86-pc-os2*emx | i386-pc-msdosdjgpp | 
*-*-cygwin)
+    i386-emx-os2 | i[3456]86-pc-os2*emx | i386-pc-msdosdjgpp |
*-*-cygwin | *-*-mingw32 )
~         ac_cv_sys_symbol_underscore=yes
~         ;;
~     *)
diff -Naur gnupg-1.2.0.orig/aclocal.m4 gnupg-1.2.0/aclocal.m4
- --- gnupg-1.2.0.orig/aclocal.m4	2002-09-21 18:32:14.000000000 +0800
+++ gnupg-1.2.0/aclocal.m4	2002-10-11 11:02:42.000000000 +0800
@@ -665,7 +665,7 @@
~ AC_DEFUN(GNUPG_SYS_SYMBOL_UNDERSCORE,
~ [tmp_do_check="no"
~ case "${target}" in
- -    i386-emx-os2 | i[3456]86-pc-os2*emx | i386-pc-msdosdjgpp | 
*-*-cygwin)
+    i386-emx-os2 | i[3456]86-pc-os2*emx | i386-pc-msdosdjgpp |
*-*-cygwin | *-*-mingw32)
~         ac_cv_sys_symbol_underscore=yes
~         ;;
~     *)
diff -Naur gnupg-1.2.0.orig/cipher/rndw32.c gnupg-1.2.0/cipher/rndw32.c
- --- gnupg-1.2.0.orig/cipher/rndw32.c	2002-09-17 16:48:54.000000000 +0800
+++ gnupg-1.2.0/cipher/rndw32.c	2002-10-11 11:02:42.000000000 +0800
@@ -70,9 +70,7 @@
~ #include <string.h>

~ #include <windows.h>
- -#ifdef __CYGWIN32__
- -# include <winioctl.h>
- -#endif
+#include <winioctl.h>


~ #include "types.h"
diff -Naur gnupg-1.2.0.orig/configure.ac gnupg-1.2.0/configure.ac
- --- gnupg-1.2.0.orig/configure.ac	2002-09-21 18:19:16.000000000 +0800
+++ gnupg-1.2.0/configure.ac	2002-10-11 11:02:42.000000000 +0800
@@ -261,6 +261,7 @@
~ AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
~ AC_PROG_CC
~ AC_PROG_CPP
+AC_PROG_RANLIB
~ AC_PATH_PROG(PERL,"perl")
~ AC_ISC_POSIX
~ AC_SYS_LARGEFILE
diff -Naur gnupg-1.2.0.orig/scripts/build-mingw32
gnupg-1.2.0/scripts/build-mingw32
- --- gnupg-1.2.0.orig/scripts/build-mingw32	1970-01-01 08:00:00.000000000
+0800
+++ gnupg-1.2.0/scripts/build-mingw32	2002-10-11 11:03:54.000000000 +0800
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# This script must be run from gnupg top level directory as follows:
+#   scripts/build-mingw32
+
+./autoconf
+
+export CC="gcc -mno-cygwin -mthreads"
+
+./configure --target=i386-pc-mingw32
+


- --
*************************************************
Soh Kok Hong

kokhong at post1.com PGP Signature:
D18B FC65 2202 3E43 A2D3 90D2 7BCC ABD3 77CE CD1C
*************************************************

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0-nr2 (Windows 98)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9pkbee8yr03fOzRwRAk16AKDDInD59kDuvGynaAA4hiGRxddrBQCgtYCK
8VmHnpTRg+lOpF+CYIZKAJM=
=1Gxq
-----END PGP SIGNATURE-----





More information about the Gnupg-devel mailing list