Linker script and dependency search path

Mike Frysinger
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* doesn’t solve the problem
> (libhurduser and libmachuser are in the same directory as

are you not using sysroots ?

> So, is ld supposed to honor RUNPATH from*, given that this
> shared library is only referenced from a ‘GROUP’ command in
> 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.
-------------- 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: <>

More information about the Binutils mailing list