xorg-2.eclass: Use --disable-selective-werror.
authorMatt Turner <mattst88@gentoo.org>
Sun, 29 Jan 2017 19:30:39 +0000 (11:30 -0800)
committerMatt Turner <mattst88@gentoo.org>
Wed, 1 Feb 2017 06:35:39 +0000 (22:35 -0800)
Bug: https://bugs.gentoo.org/416069

eclass/xorg-2.eclass

index c356c33e50853f7fc6c423b5c05cf7e661637b3e..9a1abb1b0c9ba3b5ad87bdc761ad4902708a5125 100644 (file)
@@ -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[@]}"
        )