git: 3abd36c68fe4 - main - sys.mk: Define HOST_CC as CC by default.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Mar 2024 22:22:10 UTC
The branch main has been updated by stevek: URL: https://cgit.FreeBSD.org/src/commit/?id=3abd36c68fe48b666dc8f6bbbc77d27971488ef7 commit 3abd36c68fe48b666dc8f6bbbc77d27971488ef7 Author: Stephen J. Kiernan <stevek@FreeBSD.org> AuthorDate: 2024-03-27 21:25:28 +0000 Commit: Stephen J. Kiernan <stevek@FreeBSD.org> CommitDate: 2024-03-27 22:21:50 +0000 sys.mk: Define HOST_CC as CC by default. This allows for setting a different compiler for building hostprogs when cross compiling. Obtained from: Juniper Networks, Inc. Reviewed by: sjg Differential Revision: https://reviews.freebsd.org/D44536 --- share/mk/sys.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/mk/sys.mk b/share/mk/sys.mk index d8c5809b0bed..44db9266784f 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -153,6 +153,8 @@ CFLAGS += -fno-strict-aliasing IR_CFLAGS ?= ${STATIC_CFLAGS:N-O*} ${CFLAGS:N-O*} PO_CFLAGS ?= ${CFLAGS} +HOST_CC ?= ${CC} + # cp(1) is used to copy source files to ${.OBJDIR}, make sure it can handle # read-only files as non-root by passing -f. CP ?= cp -f