This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How do I link to a shared lib without having that lib's dependencies (the way MS link does)


On Mon, Aug 11, 2003 at 07:28:57PM -0700, David Wuertele wrote:
> # Compile and link prog.c to libA.so
> gcc -o prog prog.c -L. -lA
> /usr/bin/ld: warning: libB.so, needed by ./libA.so, not found
> (try using -rpath or -rpath-link)

Did you even try the suggestion?  Adding -rpath-link=. would 
indeed have solved your problem.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]