summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-08-04 03:03:12 +0100
committerSam James <sam@gentoo.org>2023-08-04 03:05:01 +0100
commit5b03a882f4fae447bf9d0a5e568ce91c9548e232 (patch)
tree12d6dea8b3b92f9192904c8135632f447e5b89bd /eclass
parentapp-text/mdbook: add 0.4.33 (diff)
downloadgentoo-5b03a882f4fae447bf9d0a5e568ce91c9548e232.tar.gz
gentoo-5b03a882f4fae447bf9d0a5e568ce91c9548e232.tar.bz2
gentoo-5b03a882f4fae447bf9d0a5e568ce91c9548e232.zip
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass11
1 files changed, 11 insertions, 0 deletions
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