This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFC] sysroot and dynamic libraries
On Wed, Aug 06, 2008 at 06:32:48PM -0700, David Daney wrote:
> My libc and other system libraries are indeed in the sysroot, so no problem
> there. However hypothetically, I build my application (which includes
> several dynamic libraries with their own DT_NEEDED) outside of the sysroot
> and pass -L so the linker can find them. It sounds like you are saying
> that with your change, the dependencies of libraries outside of the sysroot
> may no longer be found and I will now get linker errors unless I manually
> specify *all* needed libraries.
Any dependency of dynamic libraries outside the sysroot are not found
at the moment, unless you use --rpath or --rpath-link. -L doesn't
affect the DT_NEEDED search..
However, I guess ignoring -L for shared libraries is a little too
rude. I'll have to try something different. Looking first for
DT_NEEDED dependencies in the same dir as the library would fix the
particular problem I'm having.
--
Alan Modra
Australia Development Lab, IBM