Ignore dependency lines beginning with '#' to deal with gcc
authorTom Yu <tlyu@mit.edu>
Wed, 19 Sep 2007 02:54:56 +0000 (02:54 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 19 Sep 2007 02:54:56 +0000 (02:54 +0000)
-fworking-directory output during make depend.

ticket: 5752
target_version: 1.6.4
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19961 dc483132-0cff-0310-8789-dd5450dbe970

src/util/depfix.pl

index 473b649bb57453dba0a87a79543bc0f60f3f0e1a..dfe7742517ba26257cf75a4b412f9b15606cb67c 100644 (file)
@@ -214,6 +214,7 @@ my $buf = '';
 while (<STDIN>) {
     # Strip newline.
     chop;
+    next if /^\s*#/;
     # Do directory-specific path substitutions on each filename read.
     $_ = &do_subs($_);
     if (m/\\$/) {