Linker script and dependency search path

Mike Frysinger vapier@gentoo.org
Wed May 19 23:37:00 GMT 2010


On Wednesday 19 May 2010 03:14:53 Ludovic Courtès wrote:
> Adding -L/path/to/libc, or LIBRARY_PATH=/path/to/libc, or adding
> /path/to/libc to the RUNPATH of libc.so.0* doesn’t solve the problem
> (libhurduser and libmachuser are in the same directory as libc.so.)

are you not using sysroots ?

> So, is ld supposed to honor RUNPATH from libc.so.0*, given that this
> shared library is only referenced from a ‘GROUP’ command in libc.so?
> What are the search paths used for dependencies of shared libraries
> mentioned in a ‘GROUP’ command?

i dont think so.  if you didnt want to use sysroots for some weird reason, an 
alternative might be to use the full path in the linker script.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20100519/38fda8bf/attachment.sig>


More information about the Binutils mailing list