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