This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Dependency output path question
- From: Michael Morrell <mrm94040 at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 10 Jul 2007 17:14:46 -0700 (PDT)
- Subject: Dependency output path question
- Reply-to: morrell at alumni dot ucsd dot edu
I don't understand why the contents of the dependency output changes when
I
specify a full path on the command line. An example:
% ls
foo.c foo1.h subdir
% ls subdir
foo2.h
% cat foo.c
#include "foo1.h"
#include "foo2.h"
% gcc -MD -Isubdir -c foo.c
% cat foo.d
foo.o: foo.c foo1.h subdir/foo2.h
% gcc -MD -Isubdir -c /tmp/foo.c
% cat foo.d
foo.o: /tmp/foo.c /tmp/foo1.h subdir/foo2.h
Why are the 2 header files treated differently in the second case?
Thanks,
Michael
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html