commit: 07231b81c5cceec31ddfafca595e6a72c2586420 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> AuthorDate: Sun Jan 10 00:05:25 2021 +0000 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> CommitDate: Sun Jan 10 00:05:25 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07231b81
xorg-3.eclass: Explicitly disable static libraries Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> eclass/xorg-3.eclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass index 399fc8661f4..8e22c72cb11 100644 --- a/eclass/xorg-3.eclass +++ b/eclass/xorg-3.eclass @@ -369,9 +369,15 @@ xorg-3_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 econfargs=( ${dep_track} ${selective_werror} + ${no_static} ${FONT_OPTIONS} "${xorgconfadd[@]}" )