Subject: Re: ld --as-needed broken ?
To: Todd Vierling <tv@duh.org>
From: Luke Mewburn <lukem@NetBSD.org>
List: tech-toolchain
Date: 05/13/2005 14:58:23
--RdOi/MCTP6675j71
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, May 13, 2005 at 12:10:58AM -0400, Todd Vierling wrote:
  | In essence, though, I *would* like to see inter-.so dependencies in
  | src/lib/, because it's TRT to do.

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

Take a look at the LIBDPLIBS support in <bsd.lib.mk>

Cheers,
Luke.

--RdOi/MCTP6675j71
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFChDPvpBhtmn8zJHIRAluXAKDIf9+IwdiBa5hpmV3HeyWjqYG3RQCfXLEd
f04Jg9JALmr+uzqXOPn7YMI=
=RW5Q
-----END PGP SIGNATURE-----

--RdOi/MCTP6675j71--