Statically link bundled libraries

Sébastien Wilmet swilmet at gnome.org
Thu Jun 23 09:02:18 UTC 2016


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.
But if only 2 or 3 libraries are bundled, I don't think it makes a big
difference.

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.

--
Sébastien



More information about the xdg-app mailing list