summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-03-15 01:45:23 +0000
committerMike Frysinger <vapier@gentoo.org>2006-03-15 01:45:23 +0000
commit01378216bc8141e9315ad62a269dd1daf069bbb3 (patch)
tree50c00bceecb4acff4a6051e713e6ecd390b443ac /eclass
parentm68k/s390/sh love (diff)
downloadhistorical-01378216bc8141e9315ad62a269dd1daf069bbb3.tar.gz
historical-01378216bc8141e9315ad62a269dd1daf069bbb3.tar.bz2
historical-01378216bc8141e9315ad62a269dd1daf069bbb3.zip
use _E_CROSS_HEADERS_ONLY in USE rather than env var
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass6
1 files changed, 2 insertions, 4 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 5525c95e8601..5ba352d55e04 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.163 2006/03/08 11:02:29 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.164 2006/03/15 01:45:23 vapier Exp $
# Description: kernel.eclass rewrite for a clean base regarding the 2.6
# series of kernel with back-compatibility for 2.4
@@ -319,9 +319,7 @@ kernel_header_destdir() {
}
cross_pre_c_headers() {
- [[ -z ${_E_CROSS_HEADERS_ONLY} ]] && return 1
- [[ ${CHOST} == ${CTARGET} ]] && return 1
- return 0
+ has _E_CROSS_HEADERS_ONLY ${USE} && [[ ${CHOST} != ${CTARGET} ]]
}
env_setup_xmakeopts() {