Dnia 11.06.2012 o 16:56 Joost Ruis <[email protected]> napisał(a):

Would it be smart to enable the use of static-libs on certain packages?
Or should it be considered as bloat in Gentoo/Sabayon?

How I see it:

At compile time if you enable static-libs it will copy all the needed
functions from external libs into its own binary blob.

Benefits:
- Lesser breakage (on the build chroot), smaller deptree (in the binary tree)

Downside:
- Bigger binaries
- A potential security problem if a library dep. had some bug, it is
now hardcoded in the binary. Is that manageable?

Myself sees it as being bloat and a potential security risk.
But maybe that is because I most likely don't 100% understand how it works.


 global:static-libs: Build static libraries

It's used to build .a files and install them. You've confused the flag
(which seems a bit common) with "static":

 global:static: !!do not set this during bootstrap!! Causes binaries to be
statically linked instead of dynamically.

So:
USE=static - as you've said, better not (bloat, security);
USE=static-libs - those .a files aren't normally needed, so no need to
enable it unless explicitly requested by someone or a package, in my oppinion.

SN


Reply via email to