[Fedora-packaging] Package-internal static linkage

Lubomir Rintel lkundrak at v3.sk
Sat May 2 20:56:23 UTC 2009


On Sat, 2009-05-02 at 13:52 +0300, Ville Skyttä wrote:
> Hello,
> 
> Do the "no static linking" rules apply equally also to cases where the lib and 
> the executable packaged are from the same package build?

Given the objective of the rule, which I believe is to prevent copies of
compiled code being out of sync so that issues (especially security)
won't stay unfixed an unnoticed for some of the copies, there's no
problem with intra-package static link. That is, as long as you don't
ship the static library that other packages could link against.

One subtle advantage of dynamic linking would be saving space by making
the executable image as well as text of the running process smaller, but
I guess in your case (trading space for performance) is a quite good
deal.

-- 
"Excuse all the blood" -- Dead




More information about the Fedora-packaging mailing list