commit: 7c1c4de9056cf0377ad629a0698cfdb36a743585 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu May 28 15:52:24 2020 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jan 14 18:45:39 2023 +0000 URL: https://gitweb.gentoo.org/proj/policy-guide.git/commit/?id=7c1c4de9
installed-files: Indicate when .a files can be removed in install Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> Closes: https://github.com/gentoo/policy-guide/pull/18 Signed-off-by: Sam James <sam <AT> gentoo.org> installed-files.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/installed-files.rst b/installed-files.rst index 1468288..19e72e4 100644 --- a/installed-files.rst +++ b/installed-files.rst @@ -57,6 +57,14 @@ really necessary (e.g. for recovery tools) but otherwise proliferating it is considered harmful. There is no point in installing static libraries if they are never going to be used. +.. Note:: + + If the package's build system does not support disabling static + library build, it is recommended to patch it and submit the patch + upstream. However, if that is not feasible and building both shared + and static libraries does not require compiling source files twice, + it is acceptable to strip static libraries in ``src_install()``. + .. index:: pair: installed files; libtool file
