commit:     6aaaf15f8882dd112d22454600294e37969fa822
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 29 19:30:39 2017 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Feb  1 06:35:39 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6aaaf15f

xorg-2.eclass: Use --disable-selective-werror.

Bug: https://bugs.gentoo.org/416069

 eclass/xorg-2.eclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass
index c356c33..9a1abb1 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[@]}"
        )

Reply via email to