I am using android NDK-r10d to build Android x86 executable (shared linking) that runs on adb shell. On run time, I am getting the following warning:
With readelf -d you may list DT entries in your binary:
0x0000001d (RUNPATH) Library runpath: [lib]
As you may see, 0x1d corresponds to RUNPATH That entry is added with linker option -rpath (or -R, if followed by directory)