[pkg-boost-devel] Bug#248674: Boost and pkg-config support

Steve M. Robbins steve at sumost.ca
Tue Mar 1 07:52:35 UTC 2011


On Tue, Mar 01, 2011 at 10:17:36AM +0300, Vladimir Prus wrote:

> Could you brief me on what's --as-needed, why is it needed, and why
> does it break a perfect model of "I link to shared library foo, and
> whatever dependecies are used automatically".

The rationale (from http://wiki.debian.org/ToolChain/DSOLinking)
is to detect situations where

    your executable links against a library A which links against
    library B, but your executable needs symbols in library B. This is
    problematic in the situation where library A removes its
    dependency to library B. The next time the executable gets rebuild
    it will break and cannot be linked.


I think that pkg-config style dependency information is also helpful
for people using static linking.

Cheers,
-Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-boost-devel/attachments/20110301/2859aa13/attachment.pgp>


More information about the pkg-boost-devel mailing list