Add mingw shared support [backport from HEAD].
authorAndy Polyakov <appro@openssl.org>
Sat, 12 Mar 2005 09:33:14 +0000 (09:33 +0000)
committerAndy Polyakov <appro@openssl.org>
Sat, 12 Mar 2005 09:33:14 +0000 (09:33 +0000)
Configure
TABLE

index 716cc01237548e046599a7cccb89931290ee40f1..574bf55f5702d05b9cc56070c964d6687c31cc2c 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -520,7 +520,7 @@ my %table=(
 "BC-16","bcc:::(unknown):WIN16::BN_LLONG DES_PTR RC4_INDEX SIXTEEN_BIT:::",
 
 # MinGW
-"mingw", "gcc:-DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -mno-cygwin -Wall:::MINGW32:-mno-cygwin -lwsock32 -lgdi32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:win32::::.dll",
+"mingw", "gcc:-DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -mno-cygwin -Wall:::MINGW32:-lwsock32 -lgdi32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:win32:cygwin-shared:-D_DLL:-mno-cygwin:.dll",
 
 # UWIN 
 "UWIN", "cc:-DTERMIOS -DL_ENDIAN -O -Wall:::UWIN::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32",
diff --git a/TABLE b/TABLE
index d4e3fed7030802c8e20cc7eb9e3d00d50a2feceb..b871ce8863c69fd369eb4a30f318d8b26af3c138 100644 (file)
--- a/TABLE
+++ b/TABLE
@@ -3556,7 +3556,7 @@ $cflags       = -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -mno-cygwin -Wal
 $unistd       = 
 $thread_cflag = 
 $sys_id       = MINGW32
-$lflags       = -mno-cygwin -lwsock32 -lgdi32
+$lflags       = -lwsock32 -lgdi32
 $bn_ops       = BN_LLONG DES_PTR DES_RISC1 DES_UNROLL RC4_INDEX MD2_INT
 $bn_obj       = asm/bn86-out.o asm/co86-out.o
 $des_obj      = asm/dx86-out.o asm/yx86-out.o
@@ -3568,9 +3568,9 @@ $rc4_obj      = asm/rx86-out.o
 $rmd160_obj   = asm/rm86-out.o
 $rc5_obj      = asm/r586-out.o
 $dso_scheme   = win32
-$shared_target= 
-$shared_cflag = 
-$shared_ldflag = 
+$shared_target= cygwin-shared
+$shared_cflag = -D_DLL
+$shared_ldflag = -mno-cygwin
 $shared_extension = .dll
 $ranlib       = 
 $arflags      =