From: Jarkko Hietaniemi Date: Fri, 8 Mar 2002 17:56:36 +0000 (+0000) Subject: HP-UX nm seems to repeat itself. X-Git-Tag: accepted/trunk/20130322.191538~27701 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c03d0f32decf210521faaa44c28820ed270af66;p=platform%2Fupstream%2Fperl.git HP-UX nm seems to repeat itself. p4raw-id: //depot/perl@15112 --- diff --git a/Porting/findrfuncs b/Porting/findrfuncs index 0e1d3d0..c4a2985 100644 --- a/Porting/findrfuncs +++ b/Porting/findrfuncs @@ -57,6 +57,8 @@ find(sub { # delete bogus symbols grepped out of comments and such delete $rfuncs{setlocale_r} if $^O eq 'linux'; +my %syms; + for my $exe (@EXES) { for my $sym (`$NMU $exe`) { chomp $sym; @@ -65,7 +67,7 @@ for my $exe (@EXES) { next if /\s/; $sym =~ s/\@.*\z//; # remove @@GLIBC_2.0 etc # warn "#### $sym\n"; - if (exists $rfuncs{"${sym}_r"}) { + if (exists $rfuncs{"${sym}_r"} && ! $syms{"$sym:$exe"}++) { push @syms, $sym; } }