MSVC: link dynamically to the CRT
commitb896d808ddec9bc8482c34b649b87e9a3f64f8e7
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 16:20:21 +0000 (7 17:20 +0100)
committerKarsten Blees <blees@dcon.de>
Sat, 8 Jan 2011 16:30:13 +0000 (8 17:30 +0100)
tree583c8d565acac4d9da80036df269b40be0e7b85b
parentf5c7b9120874c85968be7ea3ce3bef206060e34f
MSVC: link dynamically to the CRT

Dynamic linking is generally preferred over static linking, and MSVCRT.dll
has been integral part of Windows for a long time.

This also fixes linker warnings for _malloc and _free in zlib.lib, which
seems to be compiled for MSVCRT.dll already.

The DLL version also exports some of the CRT initialization functions,
which are hidden in the static libcmt.lib (e.g. __wgetmainargs, required by
subsequent Unicode patches).

Signed-off-by: Karsten Blees <blees@dcon.de>
Makefile