Throw out *all* absolute pathnames, not matter what they look like.
The filenames we are interested in for Makefile dependencies are always relative.
This commit is contained in:
parent
de10f6900d
commit
3b4cfea688
1 changed files with 1 additions and 2 deletions
|
@ -17,8 +17,7 @@ while(<STDIN>) {
|
|||
$thisfile=$file if defined $file;
|
||||
next if !defined $deps;
|
||||
my @deps=split ' ',$deps;
|
||||
@deps=grep(!/^\/usr\/include/,@deps);
|
||||
@deps=grep(!/^\/usr\/lib\/gcc-lib/,@deps);
|
||||
@deps=grep(!/^\//,@deps);
|
||||
@deps=grep(!/^\\$/,@deps);
|
||||
push @{$files{$thisfile}},@deps;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue