This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: documentation clarification
- To: Matthew Bettencourt <matt at mail dot ssc dot usm dot edu>
- Subject: Re: documentation clarification
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 13 Nov 2001 10:11:54 +0000
- Cc: binutils at sources dot redhat dot com
- References: <3BF00EE7.807FDA9@mail.ssc.usm.edu>
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