summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJohn Mylchreest <johnm@gentoo.org>2006-05-11 08:23:43 +0000
committerJohn Mylchreest <johnm@gentoo.org>2006-05-11 08:23:43 +0000
commitb408bc8fa52043bd6fbbe6c849b4c61375d9f917 (patch)
tree317411a5d909a79f35a60c9c3d192535d697f47b /eclass
parentmore complete as-needed, ebuild cleanups (diff)
downloadhistorical-b408bc8fa52043bd6fbbe6c849b4c61375d9f917.tar.gz
historical-b408bc8fa52043bd6fbbe6c849b4c61375d9f917.tar.bz2
historical-b408bc8fa52043bd6fbbe6c849b4c61375d9f917.zip
Allow for cross-compile/distcc distribution of modules.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/linux-mod.eclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index 16d47972137c..19ed76d9b922 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.63 2006/04/02 19:14:10 johnm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.64 2006/05/11 08:23:43 johnm Exp $
# Description: This eclass is used to interface with linux-info in such a way
# to provide the functionality required and initial functions
@@ -484,6 +484,8 @@ linux-mod_src_compile() {
local modulename libdir srcdir objdir i n myARCH="${ARCH}" myABI="${ABI}"
ARCH="$(tc-arch-kernel)"
ABI="${KERNEL_ABI}"
+ CC_HOSTCC=$(tc-getBUILD_CC)
+ CC_CC=$(tc-getCC)
BUILD_TARGETS=${BUILD_TARGETS:-clean module}
strip_modulenames;
@@ -508,7 +510,8 @@ linux-mod_src_compile() {
die "Unable to run econf ${ECONF_PARAMS}"
fi
- emake ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \
+ emake HOSTCC=${CC_HOSTCC} CC=${CC_CC}\
+ ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \
|| die "Unable to make \
${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
touch ${srcdir}/.built