ld search path

Chris Croswhite csc@cadence.com
Wed Nov 12 19:42:00 GMT 2003
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,
Chris



More information about the Binutils mailing list