This is a discussion on Re: Cross compile OpenSSL in Linux using MinGW32 - Openssl ; 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 ...
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?
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 http://www.openssl.org
Development Mailing List email@example.com
Automated List Manager firstname.lastname@example.org