ld search path
Eric Christopher
echristo@redhat.com
Wed Nov 12 19:53:00 GMT 2003
> > 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.
You could also use a --with-sysroot toolchain to build a cross compiler
for the exact setup you want to target.
-eric
--
Eric Christopher <echristo@redhat.com>
More information about the Binutils
mailing list