1bc0802
diff -up openssl-1.0.0-beta3/Makefile.org.mingw-libversion openssl-1.0.0-beta3/Makefile.org
1bc0802
--- openssl-1.0.0-beta3/Makefile.org.mingw-libversion	2009-08-29 22:44:10.000000000 +0300
1bc0802
+++ openssl-1.0.0-beta3/Makefile.org	2009-08-29 22:45:42.000000000 +0300
1bc0802
@@ -542,8 +542,8 @@ install_sw:
1bc0802
 				fi ); \
1bc0802
 				if expr $(PLATFORM) : 'mingw' > /dev/null; then \
1bc0802
 				(	case $$i in \
1bc0802
-						*crypto*) i=libeay32.dll;; \
1bc0802
-						*ssl*)    i=ssleay32.dll;; \
1bc0802
+						*crypto*) i=libcrypto-$(SHLIB_SONAMEVER).dll;; \
1bc0802
+						*ssl*)    i=libssl-$(SHLIB_SONAMEVER).dll;; \
1bc0802
 					esac; \
1bc0802
 					echo installing $$i; \
1bc0802
 	 				cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \
1bc0802
diff -up openssl-1.0.0-beta3/Makefile.shared.mingw-libversion openssl-1.0.0-beta3/Makefile.shared
1bc0802
--- openssl-1.0.0-beta3/Makefile.shared.mingw-libversion	2009-08-29 22:33:22.000000000 +0300
1bc0802
+++ openssl-1.0.0-beta3/Makefile.shared	2009-08-29 22:33:22.000000000 +0300
1bc0802
@@ -47,7 +47,7 @@ LIBEXTRAS=
1bc0802
 # LIBVERSION contains the current version of the library.
1bc0802
 # For example, to build libfoo.so.1.2, you need to do the following:
1bc0802
 #LIBVERSION=1.2
1bc0802
-LIBVERSION=
1bc0802
+LIBVERSION=10
1bc0802
 
1bc0802
 # LIBCOMPATVERSIONS contains the compatibility versions (a list) of
1bc0802
 # the library.  They MUST be in decreasing order.
9850465
@@ -250,7 +250,7 @@ link_o.cygwin:
1bc0802
 	base=-Wl,--enable-auto-image-base; \
1bc0802
 	deffile=; \
1bc0802
 	if expr $(PLATFORM) : 'mingw' > /dev/null; then \
1bc0802
-		SHLIB=$(LIBNAME)eay32; base=; \
1bc0802
+		SHLIB=lib$(LIBNAME); base=; \
9850465
 		if test -f $(LIBNAME)eay32.def; then \
9850465
 			deffile=$(LIBNAME)eay32.def; \
1bc0802
 		fi; \
9850465
@@ -270,13 +270,7 @@ link_a.cygwin:
1bc0802
 	dll_name=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX; extras=; \
1bc0802
 	base=-Wl,--enable-auto-image-base; \
1bc0802
 	if expr $(PLATFORM) : 'mingw' > /dev/null; then \
1bc0802
-		case $(LIBNAME) in \
1bc0802
-			crypto) SHLIB=libeay;; \
1bc0802
-			ssl) SHLIB=ssleay;; \
1bc0802
-		esac; \
1bc0802
-		SHLIB_SOVER=32; \
9850465
-		extras="$(LIBNAME).def"; \
1bc0802
-		$(PERL) util/mkdef.pl 32 $$SHLIB > $$extras; \
9850465
+		SHLIB=lib$(LIBNAME); \
1bc0802
 		base=; [ $(LIBNAME) = "crypto" ] && base=-Wl,--image-base,0x63000000; \
1bc0802
 	fi; \
1bc0802
 	dll_name=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX; \