From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BDF601382C5 for ; Wed, 3 Jun 2020 07:55:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03EC7E083B; Wed, 3 Jun 2020 07:55:38 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E2530E083B for ; Wed, 3 Jun 2020 07:55:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9277934E9AD for ; Wed, 3 Jun 2020 07:55:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 02AF0261 for ; Wed, 3 Jun 2020 07:55:35 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1591170932.3dd41142d73f41e2528eefa32e760fc3083001ee.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/kernel-2.eclass X-VCS-Directories: eclass/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 3dd41142d73f41e2528eefa32e760fc3083001ee X-VCS-Branch: master Date: Wed, 3 Jun 2020 07:55:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f147d42b-541b-493c-b3db-8b40df19f65a X-Archives-Hash: fd1b8134ee8007c2e79c086c1bfb5449 commit: 3dd41142d73f41e2528eefa32e760fc3083001ee Author: Sergei Trofimovich gentoo org> AuthorDate: Sat May 30 12:15:12 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Wed Jun 3 07:55:32 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dd41142 kernel-2.eclass: use $(CC) as HOSTCC 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. Reported-by: Agostino Sarubbo https://bugs.gentoo.org/725878 Signed-off-by: Sergei Trofimovich 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 }