Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2024 22:22:11 GMT
From:      "Stephen J. Kiernan" <stevek@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a6d8dcb0d981 - main - csh: Use HOST_CC when compiling hostprog used by csh build
Message-ID:  <202403272222.42RMMBDN020745@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by stevek:

URL: https://cgit.FreeBSD.org/src/commit/?id=a6d8dcb0d981e2f271af6d71268e0abaad1a0823

commit a6d8dcb0d981e2f271af6d71268e0abaad1a0823
Author:     Stephen J. Kiernan <stevek@FreeBSD.org>
AuthorDate: 2024-03-27 21:31:40 +0000
Commit:     Stephen J. Kiernan <stevek@FreeBSD.org>
CommitDate: 2024-03-27 22:21:50 +0000

    csh: Use HOST_CC when compiling hostprog used by csh build
    
    The "gethost" program should be built with the host compiler.
    
    Obtained from:  Juniper Networks, Inc.
    Reviewed by:    sjg
    Differential Revision:  https://reviews.freebsd.org/D44537
---
 bin/csh/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/csh/Makefile b/bin/csh/Makefile
index b482e32024ad..d9f40f180343 100644
--- a/bin/csh/Makefile
+++ b/bin/csh/Makefile
@@ -123,7 +123,7 @@ tc.defs.c: gethost
 DEPENDOBJS+= gethost
 gethost: gethost.c sh.err.h tc.const.h sh.h ${BUILD_TOOLS_META}
 	@rm -f ${.TARGET}
-	${CC:N${CCACHE_BIN}} -o gethost ${LDFLAGS} ${CFLAGS:C/-DHAVE_ICONV//} \
+	${HOST_CC:N${CCACHE_BIN}} -o gethost ${LDFLAGS} ${CFLAGS:C/-DHAVE_ICONV//} \
 	    ${TCSHDIR}/gethost.c
 .endif
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202403272222.42RMMBDN020745>