On 2006.10.17 at 19:40:05 +0200, Alon Bar-Lev wrote:

> Hello,
> 
> I tried to compile OpenSSL using MinGW on Linux, but I could not do 
> this.
> I've tried to modify configurations, converting ms/mingw.bat to 
> ms/mingw.sh, removing the translation of / into \, and more...
> 
> Before I making too much modifications,
> Have anyone succeeded in doing so?

I do it routinely.

1. Modify Configure script, adding target 
mingw-cross
(this all should go into one line)
 "mingw-cross", "i586-mingw32msvc-gcc:-mno-cygwin -DL_ENDIAN
 -fomit-frame-pointer -O3 -march=i486 -Wall
 -D_WIN32_WINNT=0x333:::MINGW32:-lwsock32 -lgdi32:BN_LLONG
 ${x86_gcc_des} ${x86_gcc_opts}
 EXPORT_VAR_AS_FN:${x86_coff_asm}:win32:cygwin-shared:-D_WINDLL
 -DOPENSSL_USE_APPLINK:-mno-cygwin
 -shared:.dll.a:i586-mingw32msvc-ranlib",

2. Modify Makefile shared so it would call
util/mkdef.pl script. and add generated .def file to linking command
Note that DEF file should contain correct DLL name, not just crypteay32
mingw32 builds libcrypto-0.9.8.dll, and this name should exactly appear
in the .def file


3. Forget about dllwrap and such. Modern Mingw32 produce absolutely
correct dlls with just gcc -shared -o dllname, 
if you specify .def file along with object file.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to