Bruce Korb wrote: > there is a bizarre > dependency problem that causes close-hook.c to be recompiled for me, > but you don't see it. Just for grins, try removing close-hook.o and > see if it rebuilds correctly. :-} > ... > Some more data points. sharutils-bld/lib/getopt.h gets rewritten > somewhere along the line.
Indeed: You have a getopt.h in CVS. Upon the first "make", since GETOPT_H is empty, the Makefile rule that rebuilds getopt.h is not triggered. But when close-hook.c is compiled, a file .deps/close-hook.Po is created that contains a dependency to getopt.h. After removing close-hook.o, the next "make" therefore rebuilds getopt.h _although_ you are on a platform which already has a complete <getopt.h>. I bet that once you remove that old getopt.h from your CVS, everything will be fine. Bruno