MSVC: link dynamically to the CRT
commit814df74eea7e8cdc5984720ed23be89649f73f2d
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 16:20:21 +0000 (7 17:20 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 5 Jun 2012 18:44:20 +0000 (5 13:44 -0500)
tree181d1342cb4cd0dff2a2bed6dbea1030da58881c
parent019d8a679096b032ed3ea9ea92ef4694af72fb08
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