summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2017-01-29 11:30:39 -0800
committerMatt Turner <mattst88@gentoo.org>2017-01-31 22:35:39 -0800
commit6aaaf15f8882dd112d22454600294e37969fa822 (patch)
tree36fd6d3ceb2c85b4b3404e10d2f14f62a08ab7e7 /eclass
parentdev-tex/feynmf: Remove old. (diff)
downloadgentoo-6aaaf15f8882dd112d22454600294e37969fa822.tar.gz
gentoo-6aaaf15f8882dd112d22454600294e37969fa822.tar.bz2
gentoo-6aaaf15f8882dd112d22454600294e37969fa822.zip
xorg-2.eclass: Use --disable-selective-werror.
Bug: https://bugs.gentoo.org/416069
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 c356c33e5085..9a1abb1b0c9b 100644
--- a/eclass/xorg-2.eclass
+++ b/eclass/xorg-2.eclass
@@ -468,8 +468,14 @@ xorg-2_src_configure() {
local dep_track="--disable-dependency-tracking"
fi
+ # Check if package supports disabling of selective -Werror=...
+ if grep -q -s "disable-selective-werror" ${ECONF_SOURCE:-.}/configure; then
+ local selective_werror="--disable-selective-werror"
+ fi
+
local myeconfargs=(
${dep_track}
+ ${selective_werror}
${FONT_OPTIONS}
"${xorgconfadd[@]}"
)