MSVC: link dynamically to the CRT
commit997304a54178f07ea9bca93cbaf6e91d7a06fd21
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 16:20:21 +0000 (7 17:20 +0100)
committerStepan Kasal <kasal@ucw.cz>
Thu, 15 May 2014 07:40:17 +0000 (15 09:40 +0200)
tree8d27fbeeef2c6041904f55d4f62f6f88af7fe1eb
parentac2378d326eed5a4828cbc552210f2be6272a981
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>
Signed-off-by: Stepan Kasal <kasal@ucw.cz>
Acked-by: Sebastian Schuberth <sschuberth@gmail.com>
Acked-by: Marat Radchenko <marat@slonopotamus.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.uname