Minor edits for Win2K compiling.

1. added a 'MT' option to mk1mk.pl

the purpose is not so much to "ensure multithread support (yet)", but so
that if you are statically linking openssl (which i do) and if you are
linking to a multithreaded program (even if you serialize your uses of
openssl), then you get all sorts of annoying ".lib" conflicts.

additions to mk1mk.pl

----------------
<debug     - Debug build
>mt         - Link with multithread libraries (MS)
<profile                 - Profiling build
----------------
<elsif (/^debug$/) { $debug=1; }
>elsif (/^mt$/)  { $mt=1; }
<elsif (/^profile$/) { $profile=1; }

additions to VC-32.pl

----------------
<$inc_def="inc32";
>$cflags .= " /MT" if $mt == 1;
<
<if ($debug)

----------------

**maybe there should be a "passthrough" parameter instead, so it's more
flexible for custom builds?  but i figured uses should be able to switch on
an MT flag anyway, it may affect builds some day in the future.  it's is
almost always possible to make build more efficient by dethreading

2. added support for /D_Win32_WINNT=0x0400 flag for "NT" builds ...
excluding WinNT3.X from build targets.  If this flag is set, openssl shoult
include "winsock2.h" instead of "winsock.h".  Easy support for this flag is
required to get mod_ssl to work on Win2K, since "winsock.h" is not supported
by mod_ssl, only.  I hard coded it, but it should probably be a build
option/target (IE: VC-NT4 target instead of VC-NT)

Offtopic: Apache 1.3.12/mod_ssl/openssl worked fine on Win2K,
Apache/mod_ssl/openssl 1.3.20 on Win2K needs a bit work for API backward
compatibility, so upgrade with caution.  I'm trying to get some of the edits
into Apache (x).  If you need help, feel free to email.

Also, if anyone knows offhand where a link to a good "howto/faq" for getting
CVS to work well in a Windows environ with MSVC++, can you let me know?

            - Erik


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to