The dynamic linker does not honor the LD_LIBRARY_PATH, and looks for
libraries in /system/lib and /lib only, in that order.
On Tue, Mar 17, 2009 at 9:36 PM, sunwrt wrote:
>
> Hi, guys,
>
> I built a shared library libhello.so, which only contained a function
> print_hello(char*), and and a prog
You mean that the shared libraries MUST be placed in /system/lib or /lib ?
There are not other ways, say, changing init.rc, available ?
Thanks!
2009/3/18 Iliyan Malchev :
>
> The dynamic linker does not honor the LD_LIBRARY_PATH, and looks for
> libraries in /system/lib and /lib only, in that
The shared library can be in the current directory of the code that's
dlopen()ing it, and native code may refer to the library by an
absolute pathname, but otherwise it would have to be in the approved
places, yes.
You can look at open_library() in bionic/linker/linker.c
Thanks
Iliyan
On Tue, M
3 matches
Mail list logo