This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d0927b
)
XSLoader 0.21: use dl_find_symbol 3rd optional argument
author
Reini Urban
<rurban@cpanel.net>
Fri, 13 Mar 2015 23:31:41 +0000
(
00:31
+0100)
committer
Tony Cook
<tony@develop-help.com>
Tue, 10 Nov 2015 21:56:28 +0000
(08:56 +1100)
to skip the worthless dl_last_error message
dist/XSLoader/XSLoader_pm.PL
patch
|
blob
|
blame
|
history
diff --git
a/dist/XSLoader/XSLoader_pm.PL
b/dist/XSLoader/XSLoader_pm.PL
index
2651596
..
8a8852e
100644
(file)
--- a/
dist/XSLoader/XSLoader_pm.PL
+++ b/
dist/XSLoader/XSLoader_pm.PL
@@
-124,10
+124,11
@@
print OUT <<'EOT';
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
- }
+ my $extra_arg = ', 1 ' if $DynaLoader::VERSION ge '1.37';
+print OUT <<"EOT";
+ if (\$boot_symbol_ref = dl_find_symbol( 0, \$bootname $extra_arg)) {
+ goto boot; #extension library has already been loaded, e.g. darwin
+ }
EOT
}