Static linking considered harmful

Axel Thimm Axel.Thimm at ATrpms.net
Fri Nov 24 19:32:27 UTC 2006


On Wed, Nov 22, 2006 at 07:24:15PM +0300, Dmitry Butskoy wrote:
> Alan Cox wrote:
> 
> >Far simpler, cleaner and more friendly will be to dump the static
> >libraries into libfoo-devel-static packages which are not in the
> >default install.  That ensures people who need to can do static
> >links and the default behaviour is that they are not there. The
> >-static packages could even get dropped off the CD easily enough
> >once the mechanisms for handling one srpm spitting out binary
> >components for extras and core are sorted

> BTW, such a "-static" subpackages might be handled the same way as 
> "-debuginfo". Consider some example of needed rpm macros (attached 
> below), written one year ago when similar topic was discussed at 
> fedore-extras-devel list.

That's very interesting, and one could perhaps even skip the need for
explicitely invoking find_static in %install, but have that doen
automatically dependent on presence of any *.a lib. E.g. w/o touching
the specfiles at all. Very nice idea, Dmitry!
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20061124/9224e283/attachment.sig>


More information about the fedora-devel-list mailing list