static library dependencies

Mike Frysinger vapier@gentoo.org
Fri Mar 19 06:20:00 GMT 2010


On Thursday 18 March 2010 18:15:26 Howard Chu wrote:
> When building shared libraries you can link any dependencies into the
> shared library file, and so any application can use the shared library
> without mentioning the library's dependencies on the link line. It would
> be nice to provide the same capability for static libraries, otherwise
> build procedures need to be changed drastically depending on whether a
> library dependency is static or shared.
> 
> It seems all you need to do is add a dependency list member in the ar
> archive, and extend the linker to look for this dependency list by
> default. It could be an extension of the symbol directory maintained by
> "ar rs" or some other option.

sounds like over engineering when practical solutions already exist.  use 
libtool and/or pkg-config.  both have been working for years for people.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20100319/7d709733/attachment.sig>


More information about the Binutils mailing list