[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: Re: [gentoo-dev] [PATCH] kernel-2.eclass: use $(CC) as HOSTCC, bug #725878
From: Manoj Gupta <manojgupta () google ! com>
Date: 2020-05-30 16:59:16
Message-ID: CAH=QcsjzkUPq9fNuqX6=xaU5-VbwWZ=tVegtiw7MLKVfHaEruQ () mail ! gmail ! com
[Download RAW message or body]
Also see https://bugs.chromium.org/p/chromium/issues/detail?id=1088210 on
Chrome OS.
Verified that this fixes the linux-headers build issue when gcc links are
not installed.
Thanks,
Manoj
On Sat, May 30, 2020 at 5:24 AM Sergei Trofimovich <slyfox@gentoo.org>
wrote:
> Before the change HOSTCC always used gcc. This was
> detected by Agostino on linux-headers package.
>
> After the change HOSTCC uses user-specified CC
> (or BUILD_CC). Tested on native linux-headers
> and on cross-*/linux-headers.
>
> CC: kernel@gentoo.org
> Reported-by: Agostino Sarubbo
> https://bugs.gentoo.org/725878
> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
> ---
> eclass/kernel-2.eclass | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
> index 930bcf22e29..04edee33930 100644
> --- 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
> }
>
> --
> 2.26.2
>
>
>
[Attachment #3 (text/html)]
<div dir="ltr">Also see <a \
href="https://bugs.chromium.org/p/chromium/issues/detail?id=1088210">https://bugs.chromium.org/p/chromium/issues/detail?id=1088210</a> \
on Chrome OS.<div><br></div><div>Verified that this fixes the linux-headers build \
issue when gcc links are not \
installed.</div><div><br></div><div>Thanks,</div><div>Manoj</div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 30, 2020 at 5:24 AM \
Sergei Trofimovich <<a href="mailto:slyfox@gentoo.org">slyfox@gentoo.org</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Before the change \
HOSTCC always used gcc. This was<br> detected by Agostino on linux-headers \
package.<br> <br>
After the change HOSTCC uses user-specified CC<br>
(or BUILD_CC). Tested on native linux-headers<br>
and on cross-*/linux-headers.<br>
<br>
CC: <a href="mailto:kernel@gentoo.org" target="_blank">kernel@gentoo.org</a><br>
Reported-by: Agostino Sarubbo<br>
<a href="https://bugs.gentoo.org/725878" rel="noreferrer" \
target="_blank">https://bugs.gentoo.org/725878</a><br>
Signed-off-by: Sergei Trofimovich <<a href="mailto:slyfox@gentoo.org" \
target="_blank">slyfox@gentoo.org</a>><br>
---<br>
eclass/kernel-2.eclass | 1 +<br>
1 file changed, 1 insertion(+)<br>
<br>
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass<br>
index 930bcf22e29..04edee33930 100644<br>
--- a/eclass/kernel-2.eclass<br>
+++ b/eclass/kernel-2.eclass<br>
@@ -712,6 +712,7 @@ env_setup_xmakeopts() {<br>
elif type -p ${CHOST}-ar > /dev/null ; then<br>
xmakeopts="${xmakeopts} \
CROSS_COMPILE=${CHOST}-"<br> fi<br>
+ xmakeopts="${xmakeopts} HOSTCC=$(tc-getBUILD_CC)"<br>
export xmakeopts<br>
}<br>
<br>
-- <br>
2.26.2<br>
<br>
<br>
</blockquote></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic