This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
DynaLoader 1.36 dl_find_symbol add 3rd optional argument
authorReini Urban <rurban@cpanel.net>
Thu, 12 Mar 2015 22:45:51 +0000 (23:45 +0100)
committerTony Cook <tony@develop-help.com>
Tue, 10 Nov 2015 21:56:28 +0000 (08:56 +1100)
commitfd46a708fc894e9651374e1e8e256f365a25dffd
treeb2a05ead4e120e873f400fe6cd45e6d105fe8fb2
parent067cec4c785ab7f64d2974ec6622bb9f4fa53eac
DynaLoader 1.36 dl_find_symbol add 3rd optional argument

On Darwin DynaLoader::bootstrap tries dl_find_symbol first with libhandle 0,
to see if the shlib with the symbol is already loaded, e.g. with libc.
We do not want to store the dl_last_error information for this mostly
failing probe, so add an optional ign_err=0 argument.
Similar for dl_find_symbol_anywhere, which is expected to fail for all librefs.

Also support dl_last_error on symbian, as on all other platforms.

TonyC: fix bad XS
ext/DynaLoader/DynaLoader_pm.PL
ext/DynaLoader/dl_aix.xs
ext/DynaLoader/dl_dllload.xs
ext/DynaLoader/dl_dlopen.xs
ext/DynaLoader/dl_dyld.xs
ext/DynaLoader/dl_freemint.xs
ext/DynaLoader/dl_hpux.xs
ext/DynaLoader/dl_symbian.xs
ext/DynaLoader/dl_vms.xs
ext/DynaLoader/dl_win32.xs