Currently, most libtool using packages tend to build shared AND static libraries by default. Given that the overwhelming majority of packages in Gentoo don't require static libraries (and such static archives aren't supported anyways), we should pass --disable-static to econf iff the ./configure -h shows such an option (similar to how --docdir/--htmldir/--with-sysroot work). This simplifies many small library ebuilds, as these oftentimes only override src_configure to disable static archives.
Additionally, I think we should go a step further and enable passing --enable-shared too (if it appears in ./configure -h). If a configure script has been bootstrapped with
then --disable-static has no effect. Only passing --disable-static and --enable-shared wll actually enable shared libraries and disable static libraries in that scenario.
The bug has been referenced in the following commit(s):
Author: Ulrich Müller <firstname.lastname@example.org>
AuthorDate: 2021-05-17 15:45:42 +0000
Commit: Ulrich Müller <email@example.com>
CommitDate: 2021-06-05 08:55:39 +0000
EAPI 8: econf adds --disable-static
Signed-off-by: Ulrich Müller <firstname.lastname@example.org>
eapi-differences.tex | 4 +++-
pkg-mgr-commands.tex | 18 +++++++++++-------
2 files changed, 14 insertions(+), 8 deletions(-)