Skip to content

Commit

Permalink
[patch at 21983] factor out $^O eq 'darwin' from XSLoader.pm
Browse files Browse the repository at this point in the history
From: "Konovalov, Vadim Vladimirovich (Vadim)** CTR **" <vkonovalov@Lucent.com>
Message-ID: <E3FB32585BF1D411B9E900805FF51A080204E833@ru0022exch001u.ru.lucent.com>

p4raw-id: //depot/perl@29188
  • Loading branch information
Vadim Konovalov authored and rgs committed Nov 2, 2006
1 parent cfc4a7d commit 68d3ba5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/DynaLoader/XSLoader_pm.PL
Expand Up @@ -82,12 +82,17 @@ print OUT <<'EOT';
my $boot_symbol_ref;
EOT

if ($^O eq 'darwin') {
print OUT <<'EOT';
if ($boot_symbol_ref = dl_find_symbol(0, $bootname)) {
goto boot; #extension library has already been loaded, e.g. darwin
}
EOT
}

print OUT <<'EOT';
# Many dynamic extension loading problems will appear to come from
# this section of code: XYZ failed at line 123 of DynaLoader.pm.
# Often these errors are actually occurring in the initialisation
Expand Down

0 comments on commit 68d3ba5

Please sign in to comment.