I've investigated various ways of building OpenSSL (release 0.9.8) for
Win32 with gcc.
There are at least three ways to do this
1. Using mingw32 compiler (from http://www.mingw.org)
2. Using cygwin compiler with -mno-cygwin switch to create executables
which do not depend on cygwin.dll
3. Using cross-compiler on some Unix system. I've used cross-compiler
included in Debian GNU/Linux ver./g 3.1 (sarge) as package mingw32
The roadmap is to scrap #1 and make #2 work on both cygwin and msys.
Resulting libraries are in all cases compatible with Microsoft Visual C.
In addition #2 should/will generate .def files and use them when linking
.dll. Idea is to be able to generate drop-in replacement .dlls for those
compiled with MSVC.
3. Using cross-compiler.
GNU C cross-compilers can be invoked in two ways
1. Using -B option to gcc
2. Using name which looks like <architecture>-<system>-gcc, in this case
i586-mingw32msvc-gcc.
I recommend using the second way, because we need to call
cross-versions of some binutils programs, such as ranlib, and they do
not have -B option.
I'd create a /some/place/i586-mingw32mscv catalog, create small wrapper
scripts called gcc, ranlib, etc. with 'exec i586-mingw32mscv-$0 "$@"'
line, and prepend your $PATH with /some/place/i586-mingw32mscv prior
running make:-) A.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager [EMAIL PROTECTED]