MSVC: link dynamically to the CRT
commit99dadea643fb6c7df994776f6d5930c88e5a94ad
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 16:20:21 +0000 (7 17:20 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 5 Jan 2012 20:12:43 +0000 (5 14:12 -0600)
tree3fe9e0016a5b15e2114ca1993a5eb29b3c8911ec
parentb5778e1b271e30c80abac5904ae5ed77ba7c20c6
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