diff options
author | Travis Tilley <lv@gentoo.org> | 2004-10-11 04:21:54 +0000 |
---|---|---|
committer | Travis Tilley <lv@gentoo.org> | 2004-10-11 04:21:54 +0000 |
commit | c3ee8ca56098d77d76a38452821d147c969aa63d (patch) | |
tree | b6dc63409b26de6f0f534cc74f0265f7d1dce834 /eclass/toolchain.eclass | |
parent | version bump (diff) | |
download | historical-c3ee8ca56098d77d76a38452821d147c969aa63d.tar.gz historical-c3ee8ca56098d77d76a38452821d147c969aa63d.tar.bz2 historical-c3ee8ca56098d77d76a38452821d147c969aa63d.zip |
always switch gcc profile if bootstrapping!
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 5 |
1 files 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 |