mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 17:23:09 +03:00
linktrace-to-depfile: Support alternative linker trace formatting (for openbsd)
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
2d58372ec2
commit
952d2a524c
@ -7,8 +7,9 @@ my %deps;
|
|||||||
|
|
||||||
while (my $line = <>) {
|
while (my $line = <>) {
|
||||||
chomp $line;
|
chomp $line;
|
||||||
if ($line =~ /\(([^)]+)/) {
|
$line =~ s/[()]/ /g;
|
||||||
$deps{abs_path($1)} = 1;
|
for my $word (split(/\s+/, $line)) {
|
||||||
|
$deps{abs_path($word)} = 1 if ($word =~ /\.a$/);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user