# HG changeset patch # User vins # Date 1165935289 0 # Node ID 8aa52dcfc11a4afc9ec550df0dd04037dfbe94d8 # Parent a9ddcf85ec1fe21b685f05b2605269dda5088b9a [xemacs-hg @ 2006-12-12 14:54:49 by vins] Don't require MSVCRTD.dll when building setup kits. diff -r a9ddcf85ec1f -r 8aa52dcfc11a nt/ChangeLog --- a/nt/ChangeLog Mon Dec 11 22:51:11 2006 +0000 +++ b/nt/ChangeLog Tue Dec 12 14:54:49 2006 +0000 @@ -1,3 +1,9 @@ +2006-12-11 Vin Shelton + + * config.inc.samp: Added BUILD_FOR_SETUP_KIT. + * xemacs.mak: Use BUILD_FOR_SETUP_KIT to define + OK_TO_USE_MSVCRTD. + 2006-05-16 Stephen J. Turnbull * XEmacs 21.5.27 "fiddleheads" is released. diff -r a9ddcf85ec1f -r 8aa52dcfc11a nt/config.inc.samp --- a/nt/config.inc.samp Mon Dec 11 22:51:11 2006 +0000 +++ b/nt/config.inc.samp Tue Dec 12 14:54:49 2006 +0000 @@ -176,6 +176,10 @@ # #### Change to 1 when I check in the ws with support for fastcall USE_FASTCALL=0 +# Set this in order to avoid building against MSVCRTD.dll, since we can't +# ship that DLL and since it requires VC installed on the target computer +BUILD_FOR_SETUP_KIT=0 + ############################################################################ # Development options # ############################################################################ diff -r a9ddcf85ec1f -r 8aa52dcfc11a nt/xemacs.mak --- a/nt/xemacs.mak Mon Dec 11 22:51:11 2006 +0000 +++ b/nt/xemacs.mak Tue Dec 12 14:54:49 2006 +0000 @@ -196,6 +196,12 @@ SUPPORT_EDIT_AND_CONTINUE=0 !endif +!if !defined(BUILD_FOR_SETUP_KIT) || "$(BUILD_FOR_SETUP_KIT)" == "0" +OK_TO_USE_MSVCRTD=1 +!else +OK_TO_USE_MSVCRTD=0 +!endif + !if !defined(ERROR_CHECK_ALL) !if "$(emacs_is_beta)" != "" ERROR_CHECK_ALL=1 @@ -711,13 +717,13 @@ !endif !if $(USE_CRTDLL) -! if $(DEBUG_XEMACS) +! if $(DEBUG_XEMACS) && "$(OK_TO_USE_MSVCRTD)" == "1" C_LIBFLAG=-MDd LIBC_LIB=msvcrtd.lib -! else +! else C_LIBFLAG=-MD LIBC_LIB=msvcrt.lib -! endif +! endif !else C_LIBFLAG=-ML LIBC_LIB=libc.lib