Overview
| Artifact ID: | 15838d9017657c095496f36b9c51969fce147cb6 |
|---|---|
| Ticket: | 2902965fffffffffffffffffffffffffffffffff
stub related changes cause tclkit built to break |
| User & Date: | nijtmans on 2009-11-24 18:23:44 |
Changes
- icomment:
OK, here is the fix. Explanation: The reason for the stub changes is to make it possible to build both a static tclreg12.lib and a tclreg12.dll next to each other (and the same for tcldde13.lib/tcldde13.dll). Then we can do the same with the future tcltest86.lib/tcltest86.dll. We would need to compile two tclWinReg.obj files, one compiled without and one compiled with stubs. It's a lot easier to reduce this to only one, it has the advantage that tclreg12.lib can be linked in any tclsh, no matter it is compiled against tcl86.dll or tcl86.lib. Any combination of static and shared libraries will work! The disadvantage is that every executable which includes a single static library will need to link with the stub table as well. Solution: Include the stub library in any static library we produce. Then linking with any static library will automatically include the stub library objects as well. This fixes the tclkit build. proposed patch attached to this issue (/win directory only, in /unix similar changes have to be made) The modification to tclAppInit.c is not necessary, it only makes that tclsh not is forced to link with the stub library, it is completely initialized as well. So, even extensions that are compiled with TCL_USE_STUBS bug forget to call Tcl_InitStubs() will still work. It is meant as an extra safety net. With those changes, it's impossible to produce non-working static executables!
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"