[Buildroot] Library search paths and ld.so.conf
vapier at gentoo.org
Thu Jun 30 17:27:29 UTC 2011
On Thu, Jun 30, 2011 at 12:05, Quotient Remainder wrote:
> Is it possible to dynamically add a library search path on the target?
> I'm aware that it's possible to add to the ld.so library search path by
> adding an entry into "/etc/ld.so.conf" and running ldconfig as well as
> using LD_LIBRARY_PATH as is done in target-finalize but I don't want to
> run ldconfig and take the time penalty it entails to generate the cache.
> Can't I just tell ld.so to look in an extra directory or two if the
> normal ones fail?
off the top of my head, LD_LIBRARY_PATH is the only way to inject a
non-standard path at runtime without touching ld.so.conf / ldconfig.
`man ld.so` explains the runtime lookup process.
More information about the buildroot