From: Mike Frysinger Date: Wed, 15 Mar 2006 01:45:23 +0000 (+0000) Subject: use _E_CROSS_HEADERS_ONLY in USE rather than env var X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=01378216bc8141e9315ad62a269dd1daf069bbb3;p=gentoo.git use _E_CROSS_HEADERS_ONLY in USE rather than env var --- 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() {