From: Greg Hudson Date: Sun, 8 May 2016 15:11:22 +0000 (-0400) Subject: Link correct VS2015 C libraries for debug builds X-Git-Tag: krb5-1.15-beta1~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F449%2Fhead;p=thirdparty%2Fkrb5.git Link correct VS2015 C libraries for debug builds When building with VS2015 and NODEBUG is not set, link with the debugging versions of ucrt.lib and vcruntime.lib. Based on work by Chris Kingsley. ticket: 8412 (new) --- diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in index 178954d4a0..8fbc50a0ff 100644 --- a/src/lib/Makefile.in +++ b/src/lib/Makefile.in @@ -53,7 +53,11 @@ clean-windows:: ##WIN32##!if defined(VISUALSTUDIOVERSION) ##WIN32##!if $(VISUALSTUDIOVERSION:.=) >= 140 +##WIN32##!ifdef NODEBUG ##WIN32##WINCRTEXTRA = ucrt.lib vcruntime.lib +##WIN32##!else +##WIN32##WINCRTEXTRA = ucrtd.lib vcruntimed.lib +##WIN32##!endif ##WIN32##!endif ##WIN32##!endif ##WIN32##WINLIBS = kernel32.lib ws2_32.lib user32.lib shell32.lib oldnames.lib \ diff --git a/src/windows/kfwlogon/Makefile.in b/src/windows/kfwlogon/Makefile.in index 50c8bca483..ab7c3baf41 100644 --- a/src/windows/kfwlogon/Makefile.in +++ b/src/windows/kfwlogon/Makefile.in @@ -9,7 +9,11 @@ PROG_LIBPATH=-L$(TOPLIBD) -L$(KRB5_LIBDIR) !if defined(VISUALSTUDIOVERSION) !if $(VISUALSTUDIOVERSION:.=) >= 140 +!ifdef NODEBUG WINCRTEXTRA = ucrt.lib vcruntime.lib +!else +WINCRTEXTRA = ucrtd.lib vcruntimed.lib +!endif !endif !endif SYSLIBS = kernel32.lib user32.lib advapi32.lib wsock32.lib secur32.lib userenv.lib $(WINCRTEXTRA)