MSVC: link dynamically to the CRT
commit43adf7bb24b363fc68852b490150eb0257e11c5b
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 16:20:21 +0000 (7 17:20 +0100)
committerKarsten Blees <blees@dcon.de>
Sat, 26 Nov 2011 16:16:49 +0000 (26 17:16 +0100)
tree9d0f5dd35a182f0feddd3074ce305ec0af443ffb
parent99df39b20a4c18ef89f4bbdb74f75417ac704c5c
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