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]

Re: documentation clarification


Hi Matthew,

> However, if I compile using 
>  g++ ... -Wl,"rpath /home/matt/lib" 
> it hangs on the loading, however if I compile using
>  g++ ... -Wl,"rpath=/home/matt/lib" 
> Everything works fine.  I just think that the documentation should be

As Ian mentions you are using the -Wl option incorrectly:

: However, this should work:
:     g++ ... -Wl,-rpath,/home/matt/lib
: 
: I believe the linker documentation is correct.  You are not using -Wl
: correctly.  See the documentation for -Wl.

There is/was a bug in the linker however, in that an incorrectly
specified -rpath option would cause the linker to go into an infinite
loop.  I recently checked in a patch to fix this problem, so if you
would care to download the latest sources from the CVS repository and
rebuild your linker, you should get a proper error message instead of
a lock up.

Cheers
        Nick


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