Re: Cross compile OpenSSL in Linux using MinGW32
On 2006.10.17 at 19:40:05 +0200, Alon Bar-Lev wrote:
> I tried to compile OpenSSL using MinGW on Linux, but I could not do
> 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?[/color]
I do it routinely.
1. Modify Configure script, adding target
(this all should go into one line)
"mingw-cross", "i586-mingw32msvc-gcc:-mno-cygwin -DL_ENDIAN
-fomit-frame-pointer -O3 -march=i486 -Wall
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 [url]http://www.openssl.org[/url]
Development Mailing List [email]email@example.com[/email]
Automated List Manager [email]firstname.lastname@example.org[/email]