summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-27 05:20:30 +0000
committerMike Frysinger <vapier@gentoo.org>2008-10-27 05:20:30 +0000
commitedc98c589db370a1a6448a224e5fd8efb46ea98b (patch)
treec02b73d0a8516571a9e490b89c886493d23952b1 /eclass
parentFixed encoding in ChangeLog (diff)
downloadgentoo-2-edc98c589db370a1a6448a224e5fd8efb46ea98b.tar.gz
gentoo-2-edc98c589db370a1a6448a224e5fd8efb46ea98b.tar.bz2
gentoo-2-edc98c589db370a1a6448a224e5fd8efb46ea98b.zip
pass CROSS_COMPILE=${CHOST}- to build process #194380
Diffstat (limited to 'eclass')
-rw-r--r--eclass/linux-mod.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index 513115ddd68c..90b5c92acbc4 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.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/linux-mod.eclass,v 1.82 2008/09/30 05:27:42 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.83 2008/10/27 05:20:30 vapier Exp $
# Description: This eclass is used to interface with linux-info in such a way
# to provide the functionality required and initial functions
@@ -522,19 +522,19 @@ linux-mod_src_compile() {
econf ${ECONF_PARAMS} || \
die "Unable to run econf ${ECONF_PARAMS}"
fi
-
+
# This looks messy, but it is needed to handle multiple variables
# being passed in the BUILD_* stuff where the variables also have
# spaces that must be preserved. If don't do this, then the stuff
# inside the variables gets used as targets for Make, which then
# fails.
eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" \
- CC=\"$(get-KERNEL_CC)\" \
+ CROSS_COMPILE=${CHOST}- \
LDFLAGS=\"$(get_abi_LDFLAGS)\" \
${BUILD_FIXES} \
${BUILD_PARAMS} \
${BUILD_TARGETS} " \
- || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"
+ || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"
touch ${srcdir}/.built
cd ${OLDPWD}
fi