This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Overriding a DT_SONAME
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Mike Hearn <mike at navi dot cx>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 15 Apr 2005 15:54:11 +0930
- Subject: Re: Overriding a DT_SONAME
- References: <pan.2005.04.13.23.44.24.755066@navi.cx>
On Thu, Apr 14, 2005 at 12:44:24AM +0100, Mike Hearn wrote:
> I would like to link against a library, say libfoo with soname
> libfoo.so.0, but in my executable I'd like the DT_NEEDED entry to be
> recorded as some other name, eg libfoo.myapp.so.0 so at install time I can
> use a symlink to point the executable somewhere else.
>
> Is there a way to make ld link against a given library, but break the
> DT_NEEDED == DT_SONAME relationship without actually recompiling the
> target library with a custom soname?
No.
--
Alan Modra
IBM OzLabs - Linux Technology Centre