This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: LD_LIBRARY_PATH


"Karthikeyan M. D" <dkarthik@wilco-int.com> writes:

> 	Is there an equivalent variable for GNU binutils like
> LD_LIBRARY_PATH for Solaris linker, where I can specify the paths to search
> for the shared objects.

LD_LIBRARY_PATH mainly affects the dynamic linker, ld.so, not the
program linker.  ld.so is not part of the GNU binutils.

A native ELF linker will use LD_LIBRARY_PATH as a search path to find
referenced dynamic objects.  You can also use the -rpath option at
link time to set the search path which will be used at run time.  See
the documentation.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]