Dependency output path question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux