summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2021-01-09 19:06:11 -0500
committerMatt Turner <mattst88@gentoo.org>2021-01-09 19:06:11 -0500
commit996d00cd8fa82d21bd33a010399960659d3641b5 (patch)
tree54b8c477bf6fc4256d11c66bd7c8bdfa84cfb98f /eclass
parentxorg-3.eclass: Explicitly disable static libraries (diff)
downloadgentoo-996d00cd8fa82d21bd33a010399960659d3641b5.tar.gz
gentoo-996d00cd8fa82d21bd33a010399960659d3641b5.tar.bz2
gentoo-996d00cd8fa82d21bd33a010399960659d3641b5.zip
xorg-2.eclass: Explicitly disable static libraries
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/xorg-2.eclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass
index f9a18b8ec266..99b1f891b998 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[@]}"
)