Steps to Reproduce: 1. mkdir testxyz 2. touch foo.c 3. /usr/bin/gcc foo.c -c -o `pwd`/foo.o -MD foo.d will say: /this/directory/foo.o: foo.c 4. ccache /usr/bin/gcc foo.c -c -o `pwd`/foo.o -MD foo.d will say: foo.o: foo.c this was mentioned (with patch!) a while ago on the ccache lists: http://lists.samba.org/archive/ccache/2006q4/000249.html Debian has a bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=217713 as does Gentoo: http://bugs.gentoo.org/301727
Committed in e8354384f67bc733bea5a9dc8e5e90fc0bc75e32.