From f010f3e3ca997d1cd28f54cd4379799bb3faf51f Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Fri, 8 May 2015 01:09:57 -0400 Subject: [PATCH] winbuild: Document the option used to statically link the CRT - Document option RTLIBCFG (runtime library configuration). Bug: https://github.com/bagder/curl/issues/254 Reported-by: Bert Huijben --- winbuild/BUILD.WINDOWS.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/winbuild/BUILD.WINDOWS.txt b/winbuild/BUILD.WINDOWS.txt index 7d6b364e2..600f73746 100644 --- a/winbuild/BUILD.WINDOWS.txt +++ b/winbuild/BUILD.WINDOWS.txt @@ -76,3 +76,14 @@ where is one or many of: GEN_PDB= - Generate Program Database (debug symbols for release build) DEBUG= - Debug builds MACHINE= - Target architecture (default is x86) + +Static linking of Microsoft's C RunTime (CRT): +============================================== +If you are using mode=static nmake will create and link to the static build of +libcurl but *not* the static CRT. If you must you can force nmake to link in +the static CRT by passing RTLIBCFG=static. Typically you shouldn't use that +option, and nmake will default to the DLL CRT. RTLIBCFG is rarely used and +therefore rarely tested. When passing RTLIBCFG for a configuration that was +already built but not with that option, or if the option was specified +differently, you must destroy the build directory containing the configuration +so that nmake can build it from scratch.