summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-20 22:39:12 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-20 22:39:12 +0000
commit7667e9224d598ac6119650132ddb96dd2e17fa5d (patch)
treeaaa98a17191d290ec65ac218ec1adf171d59ef00 /sys-libs/glibc
parentx86 stable per bug 356509 (diff)
downloadgentoo-2-7667e9224d598ac6119650132ddb96dd2e17fa5d.tar.gz
gentoo-2-7667e9224d598ac6119650132ddb96dd2e17fa5d.tar.bz2
gentoo-2-7667e9224d598ac6119650132ddb96dd2e17fa5d.zip
Make sure the forced CC comes from the target and not the host so cross-compiling picks up the right value.
(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)
Diffstat (limited to 'sys-libs/glibc')
-rw-r--r--sys-libs/glibc/ChangeLog6
-rw-r--r--sys-libs/glibc/files/eblits/common.eblit4
2 files changed, 7 insertions, 3 deletions
diff --git a/sys-libs/glibc/ChangeLog b/sys-libs/glibc/ChangeLog
index d2a187bc015d..589273e7baa0 100644
--- a/sys-libs/glibc/ChangeLog
+++ b/sys-libs/glibc/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-libs/glibc
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.762 2011/03/20 22:23:47 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.763 2011/03/20 22:39:11 vapier Exp $
+
+ 20 Mar 2011; Mike Frysinger <vapier@gentoo.org> files/eblits/common.eblit:
+ Make sure the forced CC comes from the target and not the host so
+ cross-compiling picks up the right value.
20 Mar 2011; Mike Frysinger <vapier@gentoo.org> files/eblits/common.eblit,
files/eblits/pkg_setup.eblit:
diff --git a/sys-libs/glibc/files/eblits/common.eblit b/sys-libs/glibc/files/eblits/common.eblit
index 6049c483e962..43a7722987ea 100644
--- a/sys-libs/glibc/files/eblits/common.eblit
+++ b/sys-libs/glibc/files/eblits/common.eblit
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.20 2011/03/20 22:23:47 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.21 2011/03/20 22:39:12 vapier Exp $
# We need to be able to set alternative headers for
# compiling for non-native platform
@@ -281,7 +281,7 @@ setup_env() {
# configure script checks CFLAGS for some targets (like mips). Keep
# around the original clean value to avoid appending multiple ABIs on
# top of each other.
- : ${__GLIBC_CC:=$(tc-getCC)}
+ : ${__GLIBC_CC:=$(tc-getCC ${CTARGET_OPT:-${CTARGET}})}
export __GLIBC_CC CC="${__GLIBC_CC} ${!VAR}"
}