summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-05-25 08:41:16 +0000
committerMike Frysinger <vapier@gentoo.org>2015-05-25 08:41:16 +0000
commit38f9a13b16d7617345b63d2a968265aceb913554 (patch)
tree45c94e53c97a7fc05534c45ee0443f2cf38c54c9 /eclass/toolchain-binutils.eclass
parentenable the poisoned system directories flags when cross-compiling (see the ne... (diff)
downloadgentoo-2-38f9a13b16d7617345b63d2a968265aceb913554.tar.gz
gentoo-2-38f9a13b16d7617345b63d2a968265aceb913554.tar.bz2
gentoo-2-38f9a13b16d7617345b63d2a968265aceb913554.zip
use slightly more readable version of CATEGORY/cross-* checking
Diffstat (limited to 'eclass/toolchain-binutils.eclass')
-rw-r--r--eclass/toolchain-binutils.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass
index f698e4903fb6..edf4ea2d407a 100644
--- a/eclass/toolchain-binutils.eclass
+++ b/eclass/toolchain-binutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.141 2015/05/25 08:39:36 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.142 2015/05/25 08:41:16 vapier Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
#
@@ -49,8 +49,8 @@ esac
export CTARGET=${CTARGET:-${CHOST}}
if [[ ${CTARGET} == ${CHOST} ]] ; then
- if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
- export CTARGET=${CATEGORY/cross-}
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
fi
fi
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }