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 LT_INIT([disable-shared]) 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. Reproducible: Always
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/pms.git/commit/?id=c1d561c12f727bf475d3f6f06009a1c924cbc4a2 commit c1d561c12f727bf475d3f6f06009a1c924cbc4a2 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2021-05-17 15:45:42 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2021-06-05 08:55:39 +0000 EAPI 8: econf adds --disable-static Bug: https://bugs.gentoo.org/744871 Signed-off-by: Ulrich Müller <ulm@gentoo.org> eapi-differences.tex | 4 +++- pkg-mgr-commands.tex | 18 +++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-)