Some fixes for win32 (primarily drawn from ntdll.mak)


1.  EX_LIBS=wsock32.lib gdi32.lib are the only external libs necessary
for link - drop user32.lib from makefile creation process.  In addition,
gdi32.lib is only needed for libeay32.dll and wsock32 is only needed for
ssleay32.dll.  Remove external libraries from all tests, openssl, etc.

For /MD:
the only thing needed is:
libeay32.dll - gdi32.lib 
ssleay32.dll - wsock32.lib

2.  add in NOCRYPT for Preprocessor definition for all.  This prevents
conflicts of "cryptographic" constructs within the win2k sdk.  See dev
archive for messages from rsalz or myself.  I've been doing it out of
spite for ages.

3.The current compiler flags for /MD are:
-with-
Perl Configure VC-WIN32
ms\do_ms.bat
--
(sorry no masm or nasm)

CFLAG= /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DWIN32
-DWIN32_LEAN_AND_MEAN -DL_ENDIAN /Fdout32dll

/MD - ok 

/W3 -ok

/WX -ok (this may have to be removed to force some builds (i.e.
snapshots)  This flag treats compiler errors as warnings

/G5 - this flag optimizes for the Pentium processor.  One can also use
/G6 for the pentium pro.  Check openssl speed for difference.  This
change can be made directly to a win32 build in the makefile (ntdll.mak)
for best performance - this could be noted in ms/README.
Also note this flag is only for Professional and Enterprise Editions of
VC++   

/Ox /O2 /Ob2 /Gs0 /GF /Gy - lots of internal anomolies and conflicts -
i'll post tomorrow

/nologo -ok
-DWIN32  - ok
-DWIN32_LEAN_AND_MEAN -ok
-DL_ENDIAN - ok
/Fdout32dll - ok

I've got most of these aligned in developer studio and have tested the
above on win32 and should be able to put out the final results tmorrow
more later,
Andrew
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to