summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/GenLibDeps.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/GenLibDeps.pl b/utils/GenLibDeps.pl
index 16aed89474..74eedd3383 100755
--- a/utils/GenLibDeps.pl
+++ b/utils/GenLibDeps.pl
@@ -62,7 +62,8 @@ foreach my $lib (@libs ) {
while (<DEFS>) {
next if (! / [ABCDGRST] /);
s/^[^ ]* [ABCDGRST] //;
- chomp($_);
+ s/\015?\012//; # not sure if <DEFS> is in binmode and uses LF or CRLF.
+ # this strips both LF and CRLF.
$libdefs{$_} = $lib;
}
close DEFS;
@@ -74,7 +75,8 @@ foreach my $obj (@objs ) {
while (<DEFS>) {
next if (! / [ABCDGRST] /);
s/^[^ ]* [ABCDGRST] //;
- chomp($_);
+ s/\015?\012//; # not sure if <DEFS> is in binmode and uses LF or CRLF.
+ # this strips both LF and CRLF.
$objdefs{$_} = $obj;
}
close DEFS;