From a34f2d42b4cbde741d4af53316896d781813072b Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 13 Apr 2005 21:07:21 +0000 Subject: [PATCH] Final(?) touches to mingw shared support. .dll.a as shared lib extention might appear controversial, but that's the only way to avoid relinks... --- Configure | 4 ++-- TABLE | 6 +++--- e_os2.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Configure b/Configure index 93443d9d66..0d8a44f46d 100755 --- a/Configure +++ b/Configure @@ -530,14 +530,14 @@ 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:-lwsock32 -lgdi32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:win32:cygwin-shared:-D_WINDLL:-mno-cygwin:.dll", +"mingw", "gcc:-DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -mno-cygwin -Wall -D_WIN32_WINNT=0x333:::MINGW32:-lwsock32 -lgdi32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:win32:cygwin-shared:-D_WINDLL:-mno-cygwin:.dll.a", # UWIN "UWIN", "cc:-DTERMIOS -DL_ENDIAN -O -Wall:::UWIN::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32", # Cygwin "Cygwin-pre1.3", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::(unknown):CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32", -"Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall:::CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:dlfcn:cygwin-shared:-D_WINDLL::.dll", +"Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall:::CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:dlfcn:cygwin-shared:-D_WINDLL::.dll.a", # DJGPP "DJGPP", "gcc:-I/dev/env/WATT_ROOT/inc -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -Wall -DDEVRANDOM=\"/dev/urandom\\x24\":::MSDOS:-L/dev/env/WATT_ROOT/lib -lwatt:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::", diff --git a/TABLE b/TABLE index 5af44ee645..cc24605f9e 100644 --- a/TABLE +++ b/TABLE @@ -96,7 +96,7 @@ $dso_scheme = dlfcn $shared_target= cygwin-shared $shared_cflag = -D_WINDLL $shared_ldflag = -$shared_extension = .dll +$shared_extension = .dll.a $ranlib = $arflags = @@ -3552,7 +3552,7 @@ $arflags = *** mingw $cc = gcc -$cflags = -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -mno-cygwin -Wall +$cflags = -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -mno-cygwin -Wall -D_WIN32_WINNT=0x333 $unistd = $thread_cflag = $sys_id = MINGW32 @@ -3571,7 +3571,7 @@ $dso_scheme = win32 $shared_target= cygwin-shared $shared_cflag = -D_WINDLL $shared_ldflag = -mno-cygwin -$shared_extension = .dll +$shared_extension = .dll.a $ranlib = $arflags = diff --git a/e_os2.h b/e_os2.h index 4ca79a4d65..d8de8beead 100644 --- a/e_os2.h +++ b/e_os2.h @@ -237,8 +237,8 @@ extern "C" { # define OPENSSL_IMPORT globalref # define OPENSSL_GLOBAL globaldef #elif defined(OPENSSL_SYS_WINDOWS) && defined(OPENSSL_OPT_WINDLL) -# define OPENSSL_EXPORT extern _declspec(dllexport) -# define OPENSSL_IMPORT extern _declspec(dllimport) +# define OPENSSL_EXPORT extern __declspec(dllexport) +# define OPENSSL_IMPORT extern __declspec(dllimport) # define OPENSSL_GLOBAL #else # define OPENSSL_EXPORT extern