git: 81c9b39c0ac0 - main - print/texinfo: Respect CC

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 11 Jul 2022 21:54:12 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=81c9b39c0ac0e9d708079e2000ae906c50e7a7cf

commit 81c9b39c0ac0e9d708079e2000ae906c50e7a7cf
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-07-11 21:47:44 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-07-11 21:47:44 +0000

    print/texinfo: Respect CC
    
    Fix build when default cc (/usr/bin/cc) is missing.
    
    PR:             258811
    Reported by:    Evgeniy Khramtsov <evgeniy@khramtsov.org>
---
 print/texinfo/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/print/texinfo/Makefile b/print/texinfo/Makefile
index 4ff10093f33b..25b9b19435e6 100644
--- a/print/texinfo/Makefile
+++ b/print/texinfo/Makefile
@@ -34,6 +34,7 @@ USES=		charsetfix cpe gmake iconv:wchar_t libtool ncurses perl5 tar:xz
 CONFIGURE_ARGS=	--with-external-libintl-perl \
 		--with-external-Text-Unidecode \
 		--with-external-Unicode-EastAsianWidth
+CONFIGURE_ENV=	PERL_EXT_CC="${CC}"
 GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip install-tex
 MAKE_ARGS=	PERL=${PERL} TEXMF=${LOCALBASE}/${TEXMFDIR}