This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -MD and -MMD
On Thu, Jan 11, 2001 at 10:34:25AM -0800, Michael Vance wrote:
> Furthermore, their behaviour is changed from 2.95.2. In 2.95.2, gcc
Actually, I just looked into this some more. For 2.95.2, and the last
building snapshot I have 20001218, none of the options involving 'D'
work--they all try to link an object file. The trick, it appears, is
that using the 'D' options requires '-c', also.
Why?
Another question I have, is why passing a file of the name foo/bar.c
gets me a dependency rule of the form
bar.o: bar.h ...
instead of
foo/bar.o: bar.h ...
Lots of evil sed magic are required to fix this...
m.
--
Programmer work: briareos@lokigames.com
Loki Software, Inc. play: michael@linuxgames.com
"Naming is the origin of all particular things." -- Tao te Ching