Two patches for cygwin build of 1.4.1rc2

Volker Quetschke quetschke at scytek.de
Wed Mar 2 17:53:41 CET 2005


Actually both problems were already present in gnupg 1.4.0 but I forgot
to send them to this list.

1. To get a dynamically linked gpg $shlibext has to be 'lib.a'
    and not only 'lib'
    I use the following patch for the cygwin gnupg package, but there
    sure is a more elegant way:

--- sorry for the line wrapping ---
--- gnupg-1.4.1rc2-orig/scripts/config.rpath	2004-07-27
11:11:52.000000000 -0400
+++ gnupg-1.4.1rc2/scripts/config.rpath	2005-03-02 11:17:05.000000000 -0500
@@ -517,6 +517,12 @@
  sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
  shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
+# Cygwin needs 'lib.a' to find the import libraries
+case "$host_os" in
+  cygwin*)
+    shlibext=${shlibext}.a
+    ;;
+esac
  escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec"
| sed -e 's/^X//' -e "$sed_quote_subst"`

  sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
--- sorry for the line wrapping ---

2. For the helper programs (gpgkeys*) to work the cygwin1.dll has to be
    found.

--- sorry for the line wrapping ---
--- gnupg-1.4.1rc2-orig/g10/Makefile.am	2005-01-03 10:15:34.000000000 -0500
+++ gnupg-1.4.1rc2/g10/Makefile.am	2005-03-02 11:17:05.000000000 -0500
@@ -25,7 +25,7 @@
  #OMIT_DEPENDENCIES = zlib.h zconf.h
  libexecdir = @libexecdir@/@PACKAGE@
  if ! HAVE_DOSISH_SYSTEM
-AM_CFLAGS = -DGNUPG_LIBEXECDIR="\"$(libexecdir)\""
+AM_CFLAGS = -DGNUPG_LIBEXECDIR="\"$(libexecdir):$(bindir)\""
  endif
  needed_libs = ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a
  other_libs = $(LIBICONV) $(LIBINTL) $(CAPLIBS)
--- sorry for the line wrapping ---

Regards

    Volker

(Package maintainer for the cygwin gnupg package.)


--
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : /pipermail/attachments/20050302/4be7fa13/signature.pgp


More information about the Gnupg-devel mailing list