Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 744871 - [Future EAPI] Pass --disable-static by default to econf
Summary: [Future EAPI] Pass --disable-static by default to econf
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PMS/EAPI
Whiteboard: in-eapi-8
Depends on:
Blocks: future-eapi
  Show dependency tree
Reported: 2020-09-26 20:13 UTC by David Seifert
Modified: 2021-06-13 20:36 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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(-)