Linker script and dependency search path

Ludovic Courtès
Fri May 21 14:05:00 GMT 2010


Mike Frysinger <> writes:

> On Thursday 20 May 2010 05:35:25 Ludovic Courtès wrote:
>> Hans-Peter Nilsson <> writes:
>> > You're looking for -rpath-link; cf.
>> Yes, but that’s inconvenient for the libc itself: I find it more
>> convenient if linking with glibc just works without passing additional
>> flags (as on GNU/Linux), and augmenting the linker script does that
>> nicely.
> you get the same behavior with glibc+linux cross-compilers.  if you dont use a 
> sysrooted toolchain, the linker scripts have troubles finding things.

There’s a significant difference though: on GNU/Linux doesn’t have
anything NEEDED (except


More information about the Binutils mailing list