Summary: | kernel-2.eclass: set HOSTCC (was: sys-kernel/linux-headers calls cc directly) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | toolchain |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=720698 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 243502 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
![]() Created attachment 642362 [details]
build.log
build log and emerge --info
That comes from kernel-2.eclass. I think kernel-2.eclass should set something like HOSTCC="$(gc-getBUILD_CC)". Ended up being easier that I though. The following seems to be enough: --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -712,6 +712,7 @@ env_setup_xmakeopts() { elif type -p ${CHOST}-ar > /dev/null ; then xmakeopts="${xmakeopts} CROSS_COMPILE=${CHOST}-" fi + xmakeopts="${xmakeopts} HOSTCC=$(tc-getBUILD_CC)" export xmakeopts } Sent fore review as: https://archives.gentoo.org/gentoo-dev/message/6a616f98f142191ff3739998bd3136bb Lightly tested for native and cross cases. (In reply to Sergei Trofimovich from comment #3) > Ended up being easier that I though. The following seems to be enough: > > --- a/eclass/kernel-2.eclass > +++ b/eclass/kernel-2.eclass > @@ -712,6 +712,7 @@ env_setup_xmakeopts() { > elif type -p ${CHOST}-ar > /dev/null ; then > xmakeopts="${xmakeopts} CROSS_COMPILE=${CHOST}-" > fi > + xmakeopts="${xmakeopts} HOSTCC=$(tc-getBUILD_CC)" > export xmakeopts > } > > Sent fore review as: > https://archives.gentoo.org/gentoo-dev/message/ > 6a616f98f142191ff3739998bd3136bb > > Lightly tested for native and cross cases. ++ |