This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld search path
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Chris Croswhite <csc at cadence dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 12 Nov 2003 14:47:18 -0500
- Subject: Re: ld search path
- References: <1068666079.29386.38.camel@chrisc.laptop>
On Wed, Nov 12, 2003 at 07:41:20PM +0000, Chris Croswhite wrote:
> Hello.
>
> I need some help with search paths and ld. I am passing from gcc to ld
> (2.14)
> -Wl,-nostdlib -Wl,-rpath-link=/opt/RH72-BUILD-PKGS/GLIBC-2.2.4-IMAGE/lib
>
> This done because my system is based on a newer glibc than what I need
> the executable built with.
>
> When the executable goes to link, ld links against /usr/lib so which is
> not what I want. How, can explicitly make ld just search the path I
> have provided?
>
> TIA,
-rpath-link and -L are orthogonal options; you probably need both.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer