[RFC] sysroot and dynamic libraries

Alan Modra amodra@bigpond.net.au
Thu Aug 7 03:41:00 GMT 2008


On Wed, Aug 06, 2008 at 11:20:23PM -0400, Daniel Jacobowitz wrote:
> Yeah, this was my reaction too.  Alan, could you be a little more
> specific about the case you're worried about?

I have my sysrooted toolchain sitting in /home/alan/toolchain/, so
there is /home/alan/toolchain/lib/libc.so.6 and
/home/alan/toolchain/lib/ld.so.1.  Someone then passes -L/usr/lib
-L/lib to gcc, resulting in /lib/libc.so.6 being found rather than my
sysrooted version.  The DT_NEEDED search finds
/home/alan/toolchain/lib/ld.so.1 to meet the libc dependency, but
ld.so and libc.so are then from different versions of glibc.  Boom.

Anyway, killing the -L search is probably using too big a hammer.
I'll try something different.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list