summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-10-07 04:20:36 +0000
committerMike Frysinger <vapier@gentoo.org>2007-10-07 04:20:36 +0000
commit0eb326e4c7bbed460edaeb38f06b3539c8e1d659 (patch)
tree3674b45a056e25c5a84857d7fc8b34237c1f9f04 /sys-devel/gcc-config/files
parentold (diff)
downloadgentoo-2-0eb326e4c7bbed460edaeb38f06b3539c8e1d659.tar.gz
gentoo-2-0eb326e4c7bbed460edaeb38f06b3539c8e1d659.tar.bz2
gentoo-2-0eb326e4c7bbed460edaeb38f06b3539c8e1d659.zip
When querying for a current profile for a different target than the host, make sure we query the right target #193353.
(Portage version: 2.1.3.11)
Diffstat (limited to 'sys-devel/gcc-config/files')
-rw-r--r--sys-devel/gcc-config/files/digest-gcc-config-1.4.0-r30
-rwxr-xr-xsys-devel/gcc-config/files/gcc-config-1.4.04
2 files changed, 2 insertions, 2 deletions
diff --git a/sys-devel/gcc-config/files/digest-gcc-config-1.4.0-r3 b/sys-devel/gcc-config/files/digest-gcc-config-1.4.0-r3
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sys-devel/gcc-config/files/digest-gcc-config-1.4.0-r3
diff --git a/sys-devel/gcc-config/files/gcc-config-1.4.0 b/sys-devel/gcc-config/files/gcc-config-1.4.0
index 9cf1b1d486b6..68de99859ee8 100755
--- a/sys-devel/gcc-config/files/gcc-config-1.4.0
+++ b/sys-devel/gcc-config/files/gcc-config-1.4.0
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.4.0,v 1.21 2007/08/31 01:42:47 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.4.0,v 1.22 2007/10/07 04:20:36 vapier Exp $
trap ":" INT QUIT TSTP
@@ -715,7 +715,7 @@ done
${SET_X} && set -x
get_real_chost
-CTARGET=${CTARGET:-${REAL_CHOST}}
+CTARGET=${CTARGET:-${CC_COMP:-${REAL_CHOST}}}
if [[ ${DOIT} == "switch_profile" ]] && [[ -z ${CC_COMP} ]] ; then
usage 1