1# Android's linker will actually do relative paths just fine; the problem 2# is that it won't search from the current directory, only on 3# /vendor/lib, /system/lib, and whatever is in LD_LIBRARY_PATH. 4# The core handles that just fine, but bits of CPAN rather rightfully 5# expect things like these to work: 6# use lib 'foo' # puts foo/ in @INC 7# use My::Module::In::Foo; # calls dlopen() with foo/My/Module/... 8# # which will likely fail 9# So we take this route instead. 10$self->{CCFLAGS} = $Config{ccflags} . ' -DDLOPEN_WONT_DO_RELATIVE_PATHS'; 111; 12