From 5e6bfb77fa75a4b3c75e11a28433170fcac53bc1 Mon Sep 17 00:00:00 2001 From: Craig Leres Date: Fri, 3 Jan 2020 17:32:33 -0800 Subject: [PATCH] FreeBSD doesn't have gcc in the base system, use cc if not cross compiling --- make/project.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/make/project.mk b/make/project.mk index d9729c719..a1258cc8a 100644 --- a/make/project.mk +++ b/make/project.mk @@ -427,6 +427,15 @@ export HOSTCC HOSTLD HOSTAR HOSTOBJCOPY SIZE # Set target compiler. Defaults to whatever the user has # configured as prefix + ye olde gcc commands CC := $(call dequote,$(CONFIG_TOOLPREFIX))gcc +# FreeBSD doesn't have gcc in the base system, use cc if not cross compiling +ifeq ($(CC), gcc) +ifdef HOSTTYPE +ifeq ($(HOSTTYPE), FreeBSD) +#$(error howdy CC=${CC}) +CC := cc +endif +endif +endif CXX := $(call dequote,$(CONFIG_TOOLPREFIX))c++ LD := $(call dequote,$(CONFIG_TOOLPREFIX))ld AR := $(call dequote,$(CONFIG_TOOLPREFIX))ar