MSVC: link dynamically to the CRT
commitff9fa75486c9071824c6e03cbe0fbed901a5a1ea
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 16:20:21 +0000 (7 17:20 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 10 May 2014 21:56:47 +0000 (10 16:56 -0500)
treebd968ce24d84a4c2d73f904fa0646d40c0676873
parent4e4b3c742b2cc3a2a17cffb565fbfda026f0b4bd
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>
config.mak.uname