This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Trunk] patch for GNU-friendly gengtype
2010/6/21 Basile Starynkevitch <basile@starynkevitch.net>:
> Sorry, I wrote something unclear. What I want, is to have gengtype
> accept a --version program argument. I first tried to link version.o
> inside build/gengtype, but doing that did add a circular dependency, &
> make issued a warning about that.
Exactly. Why is this happening? The circular dependency means that
there is a pre-existing version.o dependency on build/gengtype, so
when you add the dependency the other way around, you complete the
circle. But this pre-existing dependency is IMHO wrong, version.o
should not depend on build/gengtype, or there is something else going
on with Makefile which I don't understand.
Can you look if there is indeed version.o dependency on
build/gengtype, if yes, can you break it?
--
Laurynas