Skip to content
Tcl Source Code Artifact [a796f9f214]
Login

Artifact [a796f9f214]

Artifact a796f9f2146c014f17b5ef141f0cbe198ab733f6897b0683fa87de54d533bd67:

Ticket change [a796f9f214] - New ticket [0a908bb93bb99e1e|0a908bb93b] <i>make does not rebuild object files after a header file is changed</i>. by serhiy.storchaka on 2026-10-20 16:28:19.
D 2026-10-20T16:28:19.297
J cmimetype text/x-fossil-wiki
J comment After\schanging\sa\sheader\sfile,\s<tt>make</tt>\sdoes\snot\srebuild\smost\sof\sthe\sobject\sfiles\swhich\sinclude\sit:\sin\s<tt>unix/Makefile.in</tt>\sonly\ssome\sobject\sfiles\slist\ssome\sheaders\s(<tt>$(COMPILEHDR)</tt>,\s<tt>$(IOHDR)</tt>,\setc),\sin\s<tt>win/Makefile.in</tt>\snone,\sand\s<tt>make\sdepend</tt>\sneeds\s<tt>makedepend</tt>\s([427101ffff],\s[427105ffff]).\sFor\sexample,\schanging\s<tt>generic/tcl.h</tt>\sor\s<tt>unix/tclUnixPort.h</tt>\srebuilds\snothing,\sand\schanging\s<tt>generic/tclInt.h</tt>\srebuilds\s3\sobject\sfiles.\sThe\ssame\sissue\sin\sTk\sis\s[https://core.tcl-lang.org/tk/tktview/a0109510a8|Tk\sticket\sa0109510a8].\n\nProposed\sfix\sin\sbranch\s[/timeline?r=header-dependencies|header-dependencies],\sthe\ssame\sas\sin\sTk:\sif\sthe\scompiler\ssupports\s<tt>-MMD\s-MP</tt>\s(gcc\sand\sclang)\sand\s<tt>${MAKE-make}</tt>\ssupports\s<tt>-include</tt>,\sthe\scompiler\swrites\sthe\sheader\sdependencies\sof\severy\sobject\sfile\sinto\sa\s<tt>.d</tt>\sfile,\swhich\sthe\sMakefile\sincludes.\sThis\sis\sdone\sin\s<tt>unix/</tt>\sand\s<tt>win/</tt>\s(MinGW,\sMSYS2,\sCygwin).\sWith\sit,\schanging\s<tt>tcl.h</tt>\srebuilds\s182\sobject\sfiles\son\sLinux,\s<tt>tclInt.h</tt>\s112\son\sLinux\sand\s115\swith\sMinGW\sand\sMSYS2.\sWith\s<tt>win/makefile.vc</tt>,\s<tt>nmake\s-f\smakefile.vc\sdepend</tt>\salready\sworks.
J foundin 9.1
J login serhiy.storchaka
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter serhiy.storchaka
J subsystem 53.\sConfiguration\sand\sBuild\sTools
J title make\sdoes\snot\srebuild\sobject\sfiles\safter\sa\sheader\sfile\sis\schanged
J type Bug
K 0a908bb93bb99e1ec828cfa04f2ca2dd51c1a033
U serhiy.storchaka
Z 9800b6c54ab5b6bb21cb44b3895d9c25