diff options
author | Stephen J. Kiernan <stevek@FreeBSD.org> | 2024-03-27 21:25:28 +0000 |
---|---|---|
committer | Stephen J. Kiernan <stevek@FreeBSD.org> | 2024-03-27 22:21:50 +0000 |
commit | 3abd36c68fe48b666dc8f6bbbc77d27971488ef7 (patch) | |
tree | 2fb08783ab19edbd402617bccd83f1605e6baae4 /share | |
parent | 970ea0b2cb6942b4fba088031e3b1968e056d6c9 (diff) | |
download | src-3abd36c68fe48b666dc8f6bbbc77d27971488ef7.tar.gz src-3abd36c68fe48b666dc8f6bbbc77d27971488ef7.zip |
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
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/sys.mk | 2 |
1 files changed, 2 insertions, 0 deletions
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 |