Skip to content
Tcl Source Code View Ticket
Login

View Ticket

tclstub84.lib shouldn't need to link with msvcrt.lib

Closed / Fixed230582ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2001-01-31 13:32:36
Building a debug version of an extension with tclstub84.lib
needs an added '-nodefaultlib:msvcrt.lib' in the link line.
At first you (the person reveiw this) might think.. "Oh, just use tclstub84d.lib", but that isn't enough.  What if people build applications and are using Stubs and build with libcmt(d).lib?  Then we need ALOT of stupid flavors of tclstub84.lib

Use this patch to avoid it being embedded in tclStubLib.obj:

Index: makefile.vc
===================================================================
RCS file: /cvsroot/tcl/tcl/win/makefile.vc,v
retrieving revision 1.59
diff -c -r1.59 makefile.vc
*** makefile.vc2000/11/03 21:23:281.59
--- makefile.vc2001/01/31 13:13:09
***************
*** 491,497 ****
  # be built as DLL objects but none of the symbols should be exported
  
  $(TMPDIR)\tclStubLib.obj : $(GENERICDIR)\tclStubLib.c
! $(cc32) $(TCL_CFLAGS) -DSTATIC_BUILD -Fo$@ $?
  
  
  # Dedependency rules
--- 491,497 ----
  # be built as DLL objects but none of the symbols should be exported
  
  $(TMPDIR)\tclStubLib.obj : $(GENERICDIR)\tclStubLib.c
! $(cc32) $(TCL_CFLAGS) -Zl -DSTATIC_BUILD -Fo$@ $?
  
  
  # Dedependency rules
davygrvyplain2001-01-31 20:34:36
whoop!  wrong bug catagory.  please change me.
dgpplain2001-02-01 06:26:04
Registered patch as #103533
davygrvyplain2001-09-14 12:36:56
Logged In: YES 
user_id=7549

change commited to HEAD
Log in (anonymous is fine) to add a comment.