- assigned_to: mdejong --> davygrvy
This change:
http://tktoolkit.cvs.sourceforge.net/tktoolkit/tk/win/rules.vc?r1=1.5.2.1&r2=1.5.2.2
yanked the DBGX variable from win/rules.vc:
It was:
!if $(DEBUG)
BUILDDIRTOP = Debug
DBGX = g
!else
BUILDDIRTOP = Release
DBGX =
SUFX = $(SUFX:g=)
!endif
and is now:
!if $(DEBUG)
BUILDDIRTOP = Debug
!else
BUILDDIRTOP = Release
!endif
This variable is critical though, for it is used in
win/makefile.vc that way:
!if $(MSVCRT)
!if "$(DBGX)" == ""
crt = -MD
!else
crt = -MDd
!endif
!else
!if "$(DBGX)" == ""
crt = -MT
!else
crt = -MTd
!endif
!endif
Now that DBGX is not defined anymore, debug build of
Tcl/Tk are linked against the wrong (non-debug)
standard library (libcmt or msvcrt instead of libcmtd
or msvcrtd). This causes problem with larger projects
that link against Tcl/Tk (especially static ones),
where the compiler will complain about two standard
libraries being included.
Note that this is done correctly in Tcl (DBGX is used
exactly the same way). DBGX is actually not used for
anything else in both Tcl and Tk.
Please revert to:
!if $(DEBUG)
BUILDDIRTOP = Debug
DBGX = g
!else
BUILDDIRTOP = Release
DBGX =
SUFX = $(SUFX:g=)
!endif
Thanks.