Re: LD_LIBRARY_PATH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Abhay Misra" <0infinity0@xxxxxxxxx> writes:

>   I have been looking at http://linuxmafia.com/faq/Admin/ld-lib-path.html
> & the Linux man pages.  I am just trying to work out if
> LD_LIBRARY_PATH is used at link time or not. I have been told that it
> is only used at run time, however if I set it and try to link some of
> the link errors seem to resolve themselves. Can some one please
> clarify whether or not LD_LIBRARY_PATH is used at both at link and run
> time.

When doing a native link, LD_LIBRARY_PATH will be used at link time to
help find shared libaries which are referenced by other shared
libraries directly included in the link.  That is, for a native
linker, LD_LIBRARY_PATH will supply a value for the -rpath-link
option, q.v.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux