This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
DynaLoader: On Android, define DLOPEN_WONT_DO_RELATIVE_PATHS
authorBrian Fraser <fraserbn@gmail.com>
Thu, 6 Feb 2014 01:38:41 +0000 (22:38 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Thu, 6 Feb 2014 02:12:17 +0000 (23:12 -0300)
commitda3056236f3adff9cb89b3fa6b5247a94527f38e
treeb4ee1c66fa4fb41c9093898ec57893621d302f11
parentc172110d040a37bfa910a9d0785a260671569c5c
DynaLoader: On Android, define DLOPEN_WONT_DO_RELATIVE_PATHS

Android's linker will actually do relative paths just fine; the problem
is that it won't search from the current directory, only on
/vendor/lib, /system/lib, and whatever is in LD_LIBRARY_PATH.
While the core handles that just fine, bits of CPAN rather rightfully
expect this to work:

use lib 'foo'            # puts foo/ in @INC
use My::Module::In::Foo; # calls dlopen() with foo/My/Module/...
                         # which will likely fail

So we take this route instead.
MANIFEST
ext/DynaLoader/hints/android.pl [new file with mode: 0644]