summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgcc-config6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc-config b/gcc-config
index 6f38a0e..8deb76f 100755
--- a/gcc-config
+++ b/gcc-config
@@ -2,7 +2,7 @@
# Copyright 1999-2003 Gentoo Foundation
# Distributed under the terms of the GNU General Public License
# Author: Martin Schlemmer <azarah@gentoo.org>
-# $Header: gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.3,v 1.2 2003/04/28 02:14:30 azarah Exp $
+# $Header: gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.4,v 1.1 2003/11/18 19:39:07 azarah Exp $
source /etc/init.d/functions.sh || {
@@ -122,7 +122,7 @@ get_real_chost() {
[ -n "${REAL_CHOST}" ] && return 0
# Use absolute path until all protage versions have portageq in /usr/bin
- REAL_CHOST="$(/usr/lib/portage/bin/portageq envvar CHOST)"
+ export REAL_CHOST="$(/usr/lib/portage/bin/portageq envvar CHOST)"
if [ -z "${REAL_CHOST}" ]
then
@@ -211,7 +211,7 @@ switch_profile() {
# for ccache and distcc anyhow ...
${RM} -f /lib/cpp
${CP} -f /usr/lib/gcc-config/wrapper /lib/cpp
- for x in gcc cpp cc c++ g++ "${CHOST}-gcc" "${CHOST}-c++" "${CHOST}-g++"
+ for x in gcc cpp cc c++ g++ "${REAL_CHOST}-gcc" "${REAL_CHOST}-c++" "${REAL_CHOST}-g++"
do
${RM} -f "/usr/bin/${x}"
${CP} -f /usr/lib/gcc-config/wrapper "/usr/bin/${x}"