Patch: automatic dependencies for gcc

Ralf Wildenhues Ralf.Wildenhues@gmx.de
Sun Mar 9 15:07:00 GMT 2008


* Ralf Wildenhues wrote on Sun, Mar 09, 2008 at 03:39:41PM CET:
> * Tom Tromey wrote on Sat, Mar 08, 2008 at 07:49:55PM CET:
> > Ralf> --include $(patsubst %.o, $(DEPDIR)/%.Po, $(ALL_HOST_OBJS))
> > Ralf> +DEPFILES = $(foreach obj, $(ALL_HOST_OBJS), \
> > Ralf> +	     $(dir $(obj))$(DEPDIR)/$(patsubst %.o,%.Po,$(notdir $(obj))))
> > 
> > This makes it tempting to change depcomp instead  :)
> 
> Fair enough.  Well, the one-time complexity of the above should be
> weighed against losing sync with upstream (hmm, not too dynamic ATM ;-).

Erm, not to mention that changing depcomp without renaming it will break
some other uses in the GCC and src source tree (at least libffi).

Cheers,
Ralf



More information about the Gcc-patches mailing list