Statically link bundled libraries

Bastien Nocera hadess at hadess.net
Thu Jun 23 10:28:10 UTC 2016


On Thu, 2016-06-23 at 11:02 +0200, Sébastien Wilmet wrote:
> On Wed, Jun 22, 2016 at 08:38:28PM +0200, Bastien Nocera wrote:
> > Why would you want to statically compile? To lose all the de-
> > duplication? To make sure that the binary will be rebuilt when you
> > change a single byte in a static lib?
> 
> With static linking, the application potentially starts up more
> quickly.

*potentially*

I don't think this conversation is worth having without hard data.

> But if only 2 or 3 libraries are bundled, I don't think it makes a
> big
> difference.

Or maybe 20 or 30 libraries? Who knows, we have no data.

> And if it means losing de-duplication, it is probably not worth it.
> But
> for de-duplication to work on the *.so files, the applications must
> bundle the same version of the library, and the builds need to be
> reproducible.

The result of the previous build will be used if you don't nuke the
build caches. So unless you change the options, or the version of a
library, flatpak-builder should already do the right thing.



More information about the xdg-app mailing list