From 6c03d0f32decf210521faaa44c28820ed270af66 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Fri, 8 Mar 2002 17:56:36 +0000 Subject: [PATCH] HP-UX nm seems to repeat itself. p4raw-id: //depot/perl@15112 --- Porting/findrfuncs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } } -- 2.7.4