This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Linker script and dependency search path
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Ludovic Courtès <ludo at gnu dot org>
- Cc: binutils at sourceware dot org
- Date: Wed, 19 May 2010 22:33:58 -0400 (EDT)
- Subject: Re: Linker script and dependency search path
- References: <874oi48is2.fsf@inria.fr>
On Wed, 19 May 2010, Ludovic CourtÃs wrote:
> While building the final cross-GCC, linking fails because the cross ld
> cannot find libhurduser.so and libmachuser.so, leading to undefined
> references in libc.so.0*.
>
> 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.)
You're looking for -rpath-link; cf. ld.info.
brgds, H-P