commit:     308f72c180cb88d285d9fc17e402e54f2a484dd5
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  9 04:00:06 2021 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sat Jan  9 20:04:57 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=308f72c1

xorg-3.eclass: Remove XORG_STATIC

Statically linking X libraries into your program is an extremely bad
idea.

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

 eclass/xorg-3.eclass | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass
index ece4d97b433..399fc8661f4 100644
--- a/eclass/xorg-3.eclass
+++ b/eclass/xorg-3.eclass
@@ -169,28 +169,6 @@ if [[ ${FONT} == yes ]]; then
        FONT_DIR=${FONT_DIR/type1/Type1}
        FONT_DIR=${FONT_DIR/speedo/Speedo}
 fi
-
-# @ECLASS-VARIABLE: XORG_STATIC
-# @DESCRIPTION:
-# Enables static-libs useflag. Set to no, if your package gets:
-#
-# QA: configure: WARNING: unrecognized options: --disable-static
-: ${XORG_STATIC:="yes"}
-
-# Add static-libs useflag where useful.
-if [[ ${XORG_STATIC} == yes \
-               && ${FONT} != yes \
-               && ${CATEGORY} != app-doc \
-               && ${CATEGORY} != x11-apps \
-               && ${CATEGORY} != x11-drivers \
-               && ${CATEGORY} != media-fonts \
-               && ${PN} != util-macros \
-               && ${PN} != xbitmaps \
-               && ${PN} != xorg-cf-files \
-               && ${PN/xcursor} = ${PN} ]]; then
-       IUSE+=" static-libs"
-fi
-
 BDEPEND+=" virtual/pkgconfig"
 
 # @ECLASS-VARIABLE: XORG_DRI

Reply via email to