[svn-r6765] Purpose:

Bug Fix

Description:
    If there was a header file with a path like:

        /some/path/mpich.optimized/...

    The dependencies script would change that to

        /some/path/mpich.loptimized/...
                         ^--Note.

Solution:
    Mike McKay offered the solution to replace the substitution script
    from "s/\.o/\.lo/g" to "s/\.o(\b)/\.lo$1/g". It doesn't crash when
    run on Linux, but we need to make sure that it's okay for his
    machine.

Platforms tested:
    Linux, since this script is only run on GNU platforms.

Misc. update:
This commit is contained in:
Bill Wendling 2003-04-28 13:39:41 -05:00
parent 7da63ba3c2
commit ebb263afa6

View File

@ -39,7 +39,7 @@ open(DEPEND, "<$depend_file") || die "cannot open file $depend_file: $!\n";
open(NEW, ">$new_depend_file") || die "cannot open file $new_depend_file: $!\n";
while (<DEPEND>) {
s/\.o/\.lo/g;
s/\.o(\b)/\.lo$1/g;
s/ $srcdir/ \$\(srcdir\)/g;
s/ $top_srcdir/ \$\(top_srcdir\)/g;
s/ $top_builddir/ \$\(top_builddir\)/g;