diff -Naurp gmp-4.1/Makefile.in gmp-4.1-cygwin/Makefile.in
--- gmp-4.1/Makefile.in 2002-05-24 11:54:40.000000000 +0100
+++ gmp-4.1-cygwin/Makefile.in 2002-06-27 09:20:29.000000000 +0100
@@ -546,8 +546,21 @@ clean-libLTLIBRARIES:
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
libdummy.la: $(libdummy_la_OBJECTS) $(libdummy_la_DEPENDENCIES)
$(LINK) $(libdummy_la_LDFLAGS) $(libdummy_la_OBJECTS) $(libdummy_la_LIBADD) $(LIBS)
+
+DLL_OBJECTS=$(foreach file,$(libgmp_la_OBJECTS) $(libgmp_la_LIBADD), $(dir $(file)).libs/$(subst .lo,.o,$(notdir $(file))))
+
libgmp.la: $(libgmp_la_OBJECTS) $(libgmp_la_DEPENDENCIES)
- $(LINK) -rpath $(libdir) $(libgmp_la_LDFLAGS) $(libgmp_la_OBJECTS) $(libgmp_la_LIBADD) $(LIBS)
+# $(LINK) -rpath $(libdir) $(libgmp_la_LDFLAGS) $(libgmp_la_OBJECTS) $(libgmp_la_LIBADD) $(LIBS)
+ gcc -shared -o .libs/cyggmp-3.dll -Wl,--out-implib=.libs/libgmp.dll.a -Wl,--export-all-symbols $(DLL_OBJECTS) $(LIBS)
+ rm -f .libs/libgmp.la .libs/libgmp.lai
+ sed -e 's,@DLL_NAME@,cyggmp-3.dll,g' \
+ -e 's,@INSTALLED@,no,g' \
+ -e 's,@PREFIX@,$(prefix),g' libgmp.la-cygwin > libgmp.la
+ ln -s libgmp.la .libs/libgmp.la
+ sed -e 's,@DLL_NAME@,../bin/cyggmp-3.dll,g' \
+ -e 's,@INSTALLED@,yes,g' \
+ -e 's,@PREFIX@,$(prefix),g' libgmp.la-cygwin > .libs/libgmp.lai
+
libgmpxx.la: $(libgmpxx_la_OBJECTS) $(libgmpxx_la_DEPENDENCIES)
$(CXXLINK) -rpath $(libdir) $(libgmpxx_la_LDFLAGS) $(libgmpxx_la_OBJECTS) $(libgmpxx_la_LIBADD) $(LIBS)
libmp.la: $(libmp_la_OBJECTS) $(libmp_la_DEPENDENCIES)
diff -Naurp gmp-4.1/libgmp.la-cygwin gmp-4.1-cygwin/libgmp.la-cygwin
--- gmp-4.1/libgmp.la-cygwin 1970-01-01 00:00:00.000000000 +0000
+++ gmp-4.1-cygwin/libgmp.la-cygwin 2002-06-27 09:17:59.000000000 +0100
@@ -0,0 +1,32 @@
+# libgmp.la - a libtool library file
+# Generated by ltmain.sh - GNU libtool 1.4c (1.1066 2001/09/30 10:20:29)
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='@DLL_NAME@'
+
+# Names of this library.
+library_names='libgmp.dll.a'
+
+# The name of the static archive.
+old_library=''
+
+# Libraries that this one depends upon.
+dependency_libs=''
+
+# Version information for libgmp.
+current=6
+age=3
+revision=0
+
+# Is this an already installed library?
+installed=@INSTALLED@
+
+# Files to dlopen/dlpreopen
+dlopen=''
+dlpreopen=''
+
+# Directory that this library needs to be installed in:
+libdir='@PREFIX@/lib'