diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-11-18 19:39:07 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-11-18 19:39:07 +0000 |
commit | f6a0390e97da07b3f6b5cd715bfb969a69fc7319 (patch) | |
tree | c5b3406697f057132c703b43a82a4cac9d703ace | |
parent | fix for when portageq not in path (diff) | |
download | gcc-config-f6a0390e97da07b3f6b5cd715bfb969a69fc7319.tar.gz gcc-config-f6a0390e97da07b3f6b5cd715bfb969a69fc7319.tar.bz2 gcc-config-f6a0390e97da07b3f6b5cd715bfb969a69fc7319.zip |
I did not use REAL_CHOST in all cases, ending up with /usr/bin/-gcc, etcv1.3.4
files, as CHOST was not set.
-rwxr-xr-x | gcc-config | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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}" |