Artifact
9dcb67405355f7b949e575d64b9b7bf9034cbe41:
Attachment "debug.patch" to
ticket [853643ff]
added by
dgp
2003-12-04 05:28:50.
Index: win/Makefile.in
===================================================================
RCS file: /cvsroot/tktoolkit/tk/win/Makefile.in,v
retrieving revision 1.60
diff -u -r1.60 Makefile.in
--- win/Makefile.in 8 Oct 2003 21:49:56 -0000 1.60
+++ win/Makefile.in 3 Dec 2003 21:23:49 -0000
@@ -428,12 +428,16 @@
done
@echo "Creating package index $(PKG_INDEX)";
@$(RM) $(PKG_INDEX);
- @(\
- echo "if {[package vcompare [package provide Tcl]\
- $(TCLVERSION)] != 0} { return }";\
- echo "package ifneeded Tk $(VERSION)\
- [list load [file join \$$dir .. .. bin $(TK_DLL_FILE)] Tk]";\
- ) > $(PKG_INDEX);
+ @echo "if {[package vcompare [package provide Tcl]\
+ $(TCLVERSION)] != 0} { return }" > $(PKG_INDEX);
+ @if test "x$(TK_DBGX)" = "x"; then \
+ echo "if {[info exists ::tcl_platform(debug)]\
+ && \$$::tcl_platform(debug)\
+ && [string length [package ifneeded Tk $(VERSION)]]}\
+ { return }" >> $(PKG_INDEX); \
+ fi;
+ @echo "package ifneeded Tk $(VERSION) [list load [file\
+ join \$$dir .. $(TK_LIB_FILE)] Tk]" >> $(PKG_INDEX);
@for i in tkConfig.sh $(TK_LIB_FILE) $(TK_STUB_LIB_FILE); \
do \
if [ -f $$i ]; then \