commit:     5b03a882f4fae447bf9d0a5e568ce91c9548e232
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  4 02:03:12 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Aug  4 02:05:01 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b03a882

toolchain.eclass: pass --disable-dependency-tracking, --disable-silent-rules

We already do this for gdb and binutils, do the same for gcc. Portage/econf 
only greps
the top-level configure which has neither of these, but the subconfigure dirs
do.

There's been problems in the past upstream here, see e.g. 
https://gcc.gnu.org/PR55930,
but seems fine now.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index cf6cb158a3b3..9f626c5bfc77 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -791,8 +791,19 @@ toolchain_src_configure() {
                --mandir="${DATAPATH}/man"
                --infodir="${DATAPATH}/info"
                --with-gxx-include-dir="${STDCXX_INCDIR}"
+
+               # portage's econf() does not detect presence of --d-s-r
+               # because it greps only top-level ./configure. But not
+               # libiberty's or gcc's configure.
+               --disable-silent-rules
        )
 
+       if tc_version_is_at_least 10 ; then
+               confgcc+=(
+                       --disable-dependency-tracking
+               )
+       fi
+
        # Stick the python scripts in their own slotted directory (bug #279252)
        #
        #  --with-python-dir=DIR

Reply via email to