commit:     996d00cd8fa82d21bd33a010399960659d3641b5
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 10 00:06:11 2021 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sun Jan 10 00:06:11 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=996d00cd

xorg-2.eclass: Explicitly disable static libraries

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 eclass/xorg-2.eclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass
index f9a18b8ec26..99b1f891b99 100644
--- a/eclass/xorg-2.eclass
+++ b/eclass/xorg-2.eclass
@@ -419,9 +419,15 @@ xorg-2_src_configure() {
                local selective_werror="--disable-selective-werror"
        fi
 
+       # Check if package supports disabling of static libraries
+       if grep -q -s "able-static" ${ECONF_SOURCE:-.}/configure; then
+               local no_static="--disable-static"
+       fi
+
        local myeconfargs=(
                ${dep_track}
                ${selective_werror}
+               ${no_static}
                ${FONT_OPTIONS}
                "${xorgconfadd[@]}"
        )

Reply via email to