File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ LocatePreInitScript(Tcl_Interp *interp)
407407 /*
408408 * Need to track checked directories for error reporting. As a side
409409 * benefit, because they are tracked here we can keep overwriting dirPtr
410- * without leaking memory.
410+ * without leaking memory despite not freeing up any allocated Tcl_Obj's .
411411 */
412412 searchedDirs = Tcl_NewListObj (0 , NULL );
413413
@@ -454,6 +454,9 @@ LocatePreInitScript(Tcl_Interp *interp)
454454#ifdef CFG_RUNTIME_SCRDIR
455455 TRY_PATH (Tcl_NewStringObj (CFG_RUNTIME_SCRDIR , -1 ));
456456#endif
457+ #ifdef CFG_INSTALL_SCRDIR
458+ TRY_PATH (Tcl_NewStringObj (CFG_INSTALL_SCRDIR , -1 ));
459+ #endif
457460
458461 assert (initScriptPathPtr == NULL );
459462
Original file line number Diff line number Diff line change @@ -1398,7 +1398,14 @@ tclIndexObj.o: $(GENERIC_DIR)/tclIndexObj.c
13981398 $(CC ) -c $(CC_SWITCHES ) $(GENERIC_DIR ) /tclIndexObj.c
13991399
14001400tclInterp.o : $(GENERIC_DIR ) /tclInterp.c
1401- $(CC ) -c $(CC_SWITCHES ) $(GENERIC_DIR ) /tclInterp.c
1401+ $(CC ) -c $(CC_SWITCHES ) \
1402+ -DCFG_INSTALL_LIBDIR=" \" $( LIB_INSTALL_DIR) \" " \
1403+ -DCFG_INSTALL_BINDIR=" \" $( BIN_INSTALL_DIR) \" " \
1404+ -DCFG_INSTALL_SCRDIR=" \" $( SCRIPT_INSTALL_DIR) \" " \
1405+ -DCFG_RUNTIME_LIBDIR=" \" $( libdir) \" " \
1406+ -DCFG_RUNTIME_BINDIR=" \" $( bindir) \" " \
1407+ -DCFG_RUNTIME_SCRDIR=" \" $( TCL_LIBRARY) \" " \
1408+ $(GENERIC_DIR ) /tclInterp.c
14021409
14031410tclIO.o : $(GENERIC_DIR ) /tclIO.c $(IOHDR )
14041411 $(CC ) -c $(CC_SWITCHES ) $(GENERIC_DIR ) /tclIO.c
You can’t perform that action at this time.
0 commit comments