MSVC: link dynamically to the CRT
commit379f9c99e74ec5ff1dd96855d08dc5d34e539b1b
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 16:20:21 +0000 (7 17:20 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 1 Oct 2012 13:35:10 +0000 (1 14:35 +0100)
treeceda8e06c5ce721ec22c0781fcf4397a5154116f
parent1aef23cfae5f34409aa84c967a2b1fd9b109070e
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