: <i>win/makefile.vc produces different files than win/Makefile</i> plus 8 other changes
by
.
D 2022-04-18T17:13:21.224
J closedate 2459688.21760676
J closer jan.nijtmans
J comment A\snormal\sbuild\susing\swin/Makefile,\sconfigured\r\nwith\s--enable-shared\s(the\sdefault)\sproduces\sthe\r\nfollowing\sfile\snames:\r\n\s\s\s\swin/tcl86.dll\r\n\s\s\s\swin/tclsh86.exe\r\ndoing\sthe\ssame\swith\swin/makefile.vc\sproduces:\r\n\s\s\s\swin/tcl86t.dll\r\n\s\s\s\swin/tclsh86t.exe\r\n\r\nDoing\sa\s--disable-shared\sbuild\swith\swin/Makefile:\r\n\s\s\s\swin/tcl86s.dll\r\n\s\s\s\swin/tclsh86s.exe\r\ndoing\sthe\ssame\swith\swin/makefile.vc,\susing\r\nOPTS=static,msvcrt\s(equivalent\sto\r\n--disable-shared\sin\swin/configure)\sproduces:\r\n\s\s\s\swin/tcl86tsx.dll\r\n\s\s\s\swin/tclsh86tsx.exe\r\n\r\nExplanation:\swin/makefile.vc\suses\sthe\r\nfollowing\ssuffixes\s(from\swin/rules.vc):\r\n#\sNaming\sconvention:\r\n#\s\s\st\s=\sfull\sthread\ssupport.\r\n#\s\s\ss\s=\sstatic\slibrary\s(as\sopposed\sto\san\r\n#import\slibrary)\r\n#\s\s\sg\s=\slinked\sto\sthe\sdebug\senabled\sC\r\n#run-time.\r\n#\s\s\sx\s=\sspecial\sstatic\sbuild\swhen\sit\r\n#links\sto\sthe\sdynamic\sC\srun-time.\r\n\r\nThe\soption\s't'\s(threads)\sis\sthe\sdefault\r\nsince\s8.6,\sand\s'x'\s(msvcrt)\sis\snormally\r\nused\sin\scombination\swith\sstatic\r\nbuilds\sto\sreduce\sthe\ssize\sof\sthe\r\nexecutable\s(nowadays\severyt\swin32\r\nsystem\shas\smsvcrt.dll\son-board)\r\n\r\nIn\sorder\sto\slet\swin/makefile.vc\sproduce\r\nthe\ssame\sexecutable\snames\sas\swin/Makefile,\r\nthe\sfollowing\sis\sproposed:\r\n-\sInvert\sthe\soption\sOPTS=msvcrt\sto\r\n\s\sOPTS=nomsvcrt,\seffectively\smaking\smsvcrt\r\n\s\sthe\sdefault\sfor\sboth\sdynamic\sand\sstatic\r\n\s\sbuilds,\sas\swin/Makefile\sdoes\r\n-\sInvert\sthe\smeaning\sof\sthe\soptions\s't'\sand\s'x'\r\n\s\smeaning\s'no\sthreads'\sand\s'no\smsvcrt',\sso\sthey\r\n\s\sonly\sappear\sin\sthe\sfile\sname\swhen\susing\r\n\s\snon-default\sbuilds.\r\n-\schange\sthe\spath\swhere\sbinaries\sare\sbuilt\r\n\s\s(MSVC>6)\sto\sXXX_Dynamic\s(by\sdefault)\sor\r\n\s\sXXX_Static\s(for\sstatic\sbuilds).\sFor\snon-threaded\r\n\s\sbuilds,\sprepend\s'NonThreaded'\sto\sit,\sfor\r\n\s\snon-msvcrt\sbuilds,\sappend\s'X'\sto\sit.\r\n\r\nThis\sway,\sno\sspecial\stricks\sneed\sto\sbe\sdone\r\nany\smore\sin\sextensions,\sbecause\sTcl/Tk\r\nstatic\slibraries\smight\shave\sa\s't'\sin\sthe\r\nfilename\s(8.6)\sor\snot\s(<8.6)\r\n\r\n(patch\sstill\sbeing\sdeveloped)
J icomment Starting\swith\sTcl\s8.7,\sthe\s't'\ssuffix\sis\snot\sused\sany\smore
J login jan.nijtmans
J mimetype text/x-fossil-wiki
J resolution Out\sof\sDate
J severity Minor
J status Closed
K 3546272fffffffffffffffffffffffffffffffff
U jan.nijtmans
Z 9f271834eb0a29bef997400705807bbb