commit:     2e54bc31149f25b3c1c9af3db51dfc664b14a4ab
Author:     Manoj Gupta <manojgupta <AT> google <DOT> com>
AuthorDate: Tue Jun  9 22:15:05 2020 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Jun 13 14:57:14 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e54bc31

dev-libs/nettle: Respect portage host cc variable

Pass CC_FOR_BUILD to econf. Otherwise it invokes gcc instead of portage
specified HOST/BUILD CC.

Signed-off-by: Manoj Gupta <manojgupta <AT> google.com>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/16156

 dev-libs/nettle/nettle-3.6-r2.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-libs/nettle/nettle-3.6-r2.ebuild 
b/dev-libs/nettle/nettle-3.6-r2.ebuild
index 8bac0c13512..7a850ed2560 100644
--- a/dev-libs/nettle/nettle-3.6-r2.ebuild
+++ b/dev-libs/nettle/nettle-3.6-r2.ebuild
@@ -49,6 +49,7 @@ src_prepare() {
 multilib_src_configure() {
        # --disable-openssl bug #427526
        ECONF_SOURCE="${S}" econf \
+               CC_FOR_BUILD="$(tc-getBUILD_CC)" \
                $(tc-is-static-only && echo --disable-shared) \
                $(use_enable cpu_flags_x86_aes x86-aesni) \
                $(use_enable cpu_flags_x86_sha x86-sha-ni) \

Reply via email to