summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2020-09-24 22:38:09 +0100
committerBertrand Jacquin <bertrand@jacquin.bzh>2020-10-18 01:18:58 +0100
commitb8d209a178887cb0cce799a9f84aaefa526d667e (patch)
tree50b9c06ac97ed1dcbc52e708501fe570ac155259 /eclass
parentsys-kernel/stable-sources: version bump (diff)
downloadportage-b8d209a178887cb0cce799a9f84aaefa526d667e.tar.xz
eclass/linux-build: add missing HOSTCXX and other make variables
Diffstat (limited to 'eclass')
-rw-r--r--eclass/linux-build.eclass15
1 files changed, 14 insertions, 1 deletions
diff --git a/eclass/linux-build.eclass b/eclass/linux-build.eclass
index 28d08d3b..e395f27b 100644
--- a/eclass/linux-build.eclass
+++ b/eclass/linux-build.eclass
@@ -428,6 +428,7 @@ _linux-build_src_prepare_build() {
if ! diff -q \
--ignore-matching-lines '^$' \
--ignore-matching-lines '^#' \
+ --ignore-matching-lines '^CONFIG_PLUGIN_HOSTCC=' \
--ignore-matching-lines '^CONFIG_GCC_VERSION=' \
--ignore-matching-lines '^CONFIG_CLANG_VERSION=' \
"${BUILDDIR}/.config.old" "${BUILDDIR}/.config" ; then
@@ -464,7 +465,19 @@ linux-build_src_prepare() {
)
copt=(
- CC="$(tc-getCC)" HOSTCC="${CBUILD}-gcc" CROSS_COMPILE="${CHOST}-"
+ HOSTCC="$(tc-getBUILD_CC)" HOSTCXX="$(tc-getBUILD_CXX)"
+
+ CROSS_COMPILE="${CHOST}-"
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)"
+ LD="$(tc-getLD)"
+ AR="$(tc-getAR)"
+ AS="$(tc-getAS)"
+ NM="$(tc-getNM)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ OBJDUMP="$(tc-getOBJDUMP)"
+ READELF="$(tc-getREADELF)"
+ PKG_CONFIG="$(tc-getPKG_CONFIG)"
+
ARCH="$(tc-arch-kernel)" SUBARCH="$(tc-arch-kernel)"
)