summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2021-01-09 19:05:25 -0500
committerMatt Turner <mattst88@gentoo.org>2021-01-09 19:05:25 -0500
commit07231b81c5cceec31ddfafca595e6a72c2586420 (patch)
tree936082467e2efd375f4ec7b7f82277543249a0c9 /eclass
parentsys-apps/pick: Bump to version 4.0.0 (diff)
downloadgentoo-07231b81c5cceec31ddfafca595e6a72c2586420.tar.gz
gentoo-07231b81c5cceec31ddfafca595e6a72c2586420.tar.bz2
gentoo-07231b81c5cceec31ddfafca595e6a72c2586420.zip
xorg-3.eclass: Explicitly disable static libraries
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/xorg-3.eclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass
index 399fc8661f4e..8e22c72cb113 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[@]}"
)