From 7c1c4de9056cf0377ad629a0698cfdb36a743585 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 28 May 2020 17:52:24 +0200 Subject: installed-files: Indicate when .a files can be removed in install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny Closes: https://github.com/gentoo/policy-guide/pull/18 Signed-off-by: Sam James --- 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 -- cgit v1.2.3-65-gdbad