-MM -MG, <foo.h>, and 3.4.0
Paul Jarc
prj@po.cwru.edu
Wed Apr 28 07:41:00 GMT 2004
$ cat foo.c
#include <foo.h>
#include "bar.h"
$ gcc-3.2.3/bin/gcc -E -MM -MG foo.c 2> /dev/null
foo.o: foo.c bar.h
$ gcc-3.3.3/bin/gcc -E -MM -MG foo.c
foo.o: foo.c bar.h
$ gcc-3.4.0/bin/gcc -E -MM -MG foo.c
foo.o: foo.c foo.h bar.h
Is this intentional? It doesn't seem right - #include <foo.h> won't
look in the source directory during actual compilation, but -MM -MG
seems to indicate that it would. Is there any way to evoke the old
behavior?
paul
More information about the Gcc
mailing list