<i>stub related changes cause tclkit built to break</i> status still Open with 4 other changes
by
.
D 2009-11-24T18:23:44
J icomment OK,\shere\sis\sthe\sfix.\n\nExplanation:\sThe\sreason\sfor\sthe\sstub\schanges\sis\sto\nmake\sit\spossible\sto\sbuild\sboth\sa\sstatic\stclreg12.lib\nand\sa\stclreg12.dll\snext\sto\seach\sother\s(and\sthe\ssame\nfor\stcldde13.lib/tcldde13.dll).\sThen\swe\scan\sdo\sthe\nsame\swith\sthe\sfuture\stcltest86.lib/tcltest86.dll.\nWe\swould\sneed\sto\scompile\stwo\stclWinReg.obj\nfiles,\sone\scompiled\swithout\sand\sone\scompiled\nwith\sstubs.\sIt's\sa\slot\seasier\sto\sreduce\sthis\sto\sonly\none,\sit\shas\sthe\sadvantage\sthat\stclreg12.lib\ncan\sbe\slinked\sin\sany\stclsh,\sno\smatter\sit\sis\ncompiled\sagainst\stcl86.dll\sor\stcl86.lib.\sAny\ncombination\sof\sstatic\sand\sshared\slibraries\nwill\swork!\sThe\sdisadvantage\sis\sthat\severy\nexecutable\swhich\sincludes\sa\ssingle\sstatic\nlibrary\swill\sneed\sto\slink\swith\sthe\sstub\stable\nas\swell.\n\nSolution:\sInclude\sthe\sstub\slibrary\sin\sany\nstatic\slibrary\swe\sproduce.\sThen\slinking\swith\nany\sstatic\slibrary\swill\sautomatically\sinclude\nthe\sstub\slibrary\sobjects\sas\swell.\sThis\sfixes\nthe\stclkit\sbuild.\n\nproposed\spatch\sattached\sto\sthis\sissue\s(/win\ndirectory\sonly,\sin\s/unix\ssimilar\schanges\shave\nto\sbe\smade)\n\nThe\smodification\sto\stclAppInit.c\sis\snot\nnecessary,\sit\sonly\smakes\sthat\stclsh\snot\nis\sforced\sto\slink\swith\sthe\sstub\slibrary,\sit\nis\scompletely\sinitialized\sas\swell.\sSo,\neven\sextensions\sthat\sare\scompiled\swith\nTCL_USE_STUBS\sbug\sforget\sto\scall\nTcl_InitStubs()\swill\sstill\swork.\sIt\sis\smeant\nas\san\sextra\ssafety\snet.\n\nWith\sthose\schanges,\sit's\simpossible\sto\nproduce\snon-working\sstatic\sexecutables!\n
J login nijtmans
J mimetype text/plain
J username nijtmans
K 2902965fffffffffffffffffffffffffffffffff
U nijtmans
Z e3a49f254c7971faa6426b5e9b0b5dd9