Index: win/rules.vc =================================================================== diff -u -rd55aa4b703e0cf9dfd5ffc414b0b1e320ff59982 -r7fd955bd69ca19f24fb9a7b1e6a93b22ebd8bb30 --- win/rules.vc (.../rules.vc) (revision d55aa4b703e0cf9dfd5ffc414b0b1e320ff59982) +++ win/rules.vc (.../rules.vc) (revision 7fd955bd69ca19f24fb9a7b1e6a93b22ebd8bb30) @@ -1085,7 +1085,12 @@ TCLSH = $(_TCLDIR)\bin\tclsh$(TCL_VERSION)t$(SUFX:t=).exe !endif +# When building extensions against Tcl 9+, there is no Tcl version +# infix. Check for that possibility. +TCLSTUBLIB = $(_TCLDIR)\lib\tclstub.lib +!if !exist("$(TCLSTUBLIB)") TCLSTUBLIB = $(_TCLDIR)\lib\tclstub$(TCL_VERSION).lib +!endif TCLIMPLIB = $(_TCLDIR)\lib\tcl$(TCL_VERSION)$(SUFX:t=).lib # When building extensions, may be linking against Tcl that does not add # "t" suffix (e.g. 8.5 or 8.7). If lib not found check for that possibility. @@ -1104,7 +1109,12 @@ !if !exist($(TCLSH)) TCLSH = $(_TCLDIR)\win\$(BUILDDIRTOP)\tclsh$(TCL_VERSION)t$(SUFX:t=).exe !endif +# When building extensions against Tcl 9+, there is no Tcl version +# infix. Check for that possibility. +TCLSTUBLIB = $(_TCLDIR)\win\$(BUILDDIRTOP)\tclstub.lib +!if !exist("$(TCLSTUBLIB)") TCLSTUBLIB = $(_TCLDIR)\win\$(BUILDDIRTOP)\tclstub$(TCL_VERSION).lib +!endif TCLIMPLIB = $(_TCLDIR)\win\$(BUILDDIRTOP)\tcl$(TCL_VERSION)$(SUFX:t=).lib # When building extensions, may be linking against Tcl that does not add # "t" suffix (e.g. 8.5 or 8.7). If lib not found check for that possibility.