summaryrefslogtreecommitdiff
path: root/Porting
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-08 23:49:00 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-08 23:49:00 +0000
commit72108f2bbce08927d9d0b7d1a4f1b603819f136a (patch)
tree9b3fe53f132ee0eeddbf3aec5cdc3412d7bb5fa2 /Porting
parentc8688140bd64a2d3d14b3af91b889a363c72ea56 (diff)
downloadperl-72108f2bbce08927d9d0b7d1a4f1b603819f136a.tar.gz
Still more portability.
p4raw-id: //depot/perl@15125
Diffstat (limited to 'Porting')
-rw-r--r--Porting/findrfuncs10
1 files changed, 6 insertions, 4 deletions
diff --git a/Porting/findrfuncs b/Porting/findrfuncs
index c13643ee6e..36fb7e8fa6 100644
--- a/Porting/findrfuncs
+++ b/Porting/findrfuncs
@@ -31,7 +31,7 @@ if (open(CONFIG, "config.sh")) {
push @EXES, "perl$EXE";
-find(sub {push @EXES, $File::Find::name if /.$SO$/}, '.' );
+find(sub {push @EXES, $File::Find::name if /\.$SO$/}, '.' );
push @EXES, @ARGV;
@@ -45,16 +45,17 @@ my %rfuncs;
my @syms;
find(sub {
return unless -f $File::Find::name;
- open my $F, "<$File::Find::name"
+ local *F;
+ open F, "<$File::Find::name"
or die "Can't open $File::Find::name: $!";
my $line;
- while (defined ($line = <$F>)) {
+ while (defined ($line = <F>)) {
if ($line =~ /\b(\w+_r)\b/) {
#warn "$1 => $File::Find::name\n";
$rfuncs{$1}->{$File::Find::name}++;
}
}
- close $F;
+ close F;
}, @INCDIRS);
# delete bogus symbols grepped out of comments and such
@@ -68,6 +69,7 @@ for my $exe (@EXES) {
chomp $sym;
$sym =~ s/^\s+//;
$sym =~ s/^([0-9A-Fa-f]+\s+)?[Uu]\s+//;
+ $sym =~ s/\s+[Uu]\s+-$//;
next if /\s/;
$sym =~ s/\@.*\z//; # remove @@GLIBC_2.0 etc
# warn "#### $sym\n";