From c3ee8ca56098d77d76a38452821d147c969aa63d Mon Sep 17 00:00:00 2001 From: Travis Tilley Date: Mon, 11 Oct 2004 04:21:54 +0000 Subject: [PATCH] always switch gcc profile if bootstrapping! --- eclass/toolchain.eclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 35f6ab272765..c6301dba50ff 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.27 2004/10/06 13:57:39 pappy Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.28 2004/10/11 04:21:54 lv Exp $ # # This eclass should contain general toolchain-related functions that are # expected to not change, or change much. @@ -553,8 +553,9 @@ do_gcc_config() { # emerge world -e with multiple slotted compilers installed will compile # some packages with one compiler and others with another. besides, it's # just plain rude. ;) + # ...unless we're bootstrapping and NEED a compiler with c++! local current_gcc_libpath="$(gcc-config -L)" - if [ -e ${ROOT}${current_gcc_libpath%:*}/specs -a -e ${ROOT}/etc/env.d/gcc/${current_gcc_config} ] ; then + if [ -e ${ROOT}${current_gcc_libpath%:*}/specs -a -e ${ROOT}/etc/env.d/gcc/${current_gcc_config} ] && use !bootstrap && use !build ; then local current_gcc_version="$(echo ${current_gcc_config} | awk -F - '{ print $5 }')" if [ "${current_gcc_version}" != "${MY_PV_FULL}" ] ; then # if we're installing a genuinely different compiler version, we -- 2.26.2