Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 744871

Summary: [Future EAPI] Pass --disable-static by default to econf
Product: Gentoo Hosted Projects Reporter: David Seifert <soap>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Severity: normal CC: esigra, lssndrbarbieri, mgorny, pacho, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Whiteboard: in-eapi-8
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174380    

Description David Seifert gentoo-dev 2020-09-26 20:13:02 UTC
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.

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2021-06-13 19:19:00 UTC
The bug has been referenced in the following commit(s):

commit c1d561c12f727bf475d3f6f06009a1c924cbc4a2
Author:     Ulrich Müller <>
AuthorDate: 2021-05-17 15:45:42 +0000
Commit:     Ulrich Müller <>
CommitDate: 2021-06-05 08:55:39 +0000

    EAPI 8: econf adds --disable-static
    Signed-off-by: Ulrich Müller <>

 eapi-differences.tex |  4 +++-
 pkg-mgr-commands.tex | 18 +++++++++++-------
 2 files changed, 14 insertions(+), 8 deletions(-)