This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Dependency output path question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]