This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
porting/libperl.t: handle nm output on Mac OS Ventura 13.4
authorTony Cook <tony@develop-help.com>
Wed, 24 May 2023 03:22:38 +0000 (13:22 +1000)
committerTony Cook <tony@develop-help.com>
Mon, 3 Jul 2023 23:17:45 +0000 (09:17 +1000)
Fixes #21117

t/porting/libperl.t

index 68da29b..6d05a2b 100644 (file)
@@ -245,7 +245,8 @@ sub nm_parse_gnu {
 sub nm_parse_darwin {
     my $symbols = shift;
     my $line = $_;
-    if (m{^(?:.+)?libperl\.a\((\w+\.o)\):$}) {
+    if (m{^(?:.+)?libperl\.a\((\w+\.o)\):$} ||
+        m{^(\w+\.o):$}) {
         # object file name
         $symbols->{obj}{$1}++;
         $symbols->{o} = $1;