Subject: Re: ld --as-needed broken ?
To: Todd Vierling <tv@netbsd.org>
From: Nick Hudson <skrll@netbsd.org>
List: tech-toolchain
Date: 05/13/2005 10:12:01
On Friday 13 May 2005 06:01, Todd Vierling wrote:
> On Fri, 13 May 2005, Luke Mewburn wrote:
> > We already do this for some shared libraries, and have done so for a 
while:
> >  > uname -sr
> >
> >  NetBSD 3.0_BETA
> >
> >  > ldd /usr/lib/libkrb5.so
> >
> >  /usr/lib/libkrb5.so:
> >   -lcrypt.0 => /lib/libcrypt.so.0
> >   -lcrypto.2 => /usr/lib/libcrypto.so.2
> >   -lasn1.6 => /usr/lib/libasn1.so.6
> >   -lcom_err.4 => /usr/lib/libcom_err.so.4
> >   -lroken.12 => /usr/lib/libroken.so.12
>
> Hm.  Perhaps it's me, but I don't see libc.so there.  8-)

Adding libc makes overriding libc symbols hard.

> (Meaning:  While it exists for *some* libraries, it's missing in quite many
> cases.)

Not that I'm saying we shouldn't add other library dependencies.

Nick