diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-12-07 00:49:25 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-12-07 00:49:25 +0000 |
commit | 3d3da169b6f42bb0e488a03962bd322f9f50b504 (patch) | |
tree | b60365a6ecfefe9ed7f0e5205c41ca5c830767e8 /eclass/toolchain-binutils.eclass | |
parent | Version bump, remove old version (diff) | |
download | historical-3d3da169b6f42bb0e488a03962bd322f9f50b504.tar.gz historical-3d3da169b6f42bb0e488a03962bd322f9f50b504.tar.bz2 historical-3d3da169b6f42bb0e488a03962bd322f9f50b504.zip |
hax to work around portage limitations
Diffstat (limited to 'eclass/toolchain-binutils.eclass')
-rw-r--r-- | eclass/toolchain-binutils.eclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass index aef2b6f9b328..cf3fa23ccb29 100644 --- a/eclass/toolchain-binutils.eclass +++ b/eclass/toolchain-binutils.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-binutils.eclass,v 1.12 2004/12/07 00:24:50 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.13 2004/12/07 00:49:25 vapier Exp $ # We install binutils into CTARGET-VERSION specific directories. This lets # us easily merge multiple versions for multiple targets (if we wish) and @@ -12,6 +12,11 @@ INHERITED="$INHERITED $ECLASS" EXPORT_FUNCTIONS src_unpack src_compile src_test src_install pkg_postinst pkg_prerm export CTARGET="${CTARGET:-${CHOST}}" +if [[ ${CTARGET} = ${CHOST} ]] ; then + if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then + export CTARGET="${CATEGORY/cross-}" + fi +fi DESCRIPTION="Tools necessary to build programs" HOMEPAGE="http://sources.redhat.com/binutils/" |