Merge pull request #5 from leres/master
FreeBSD doesn't have gcc in the base system, use cc if not cross compling
This commit is contained in:
commit
dc1ca69e5f
|
@ -427,6 +427,15 @@ export HOSTCC HOSTLD HOSTAR HOSTOBJCOPY SIZE
|
||||||
# Set target compiler. Defaults to whatever the user has
|
# Set target compiler. Defaults to whatever the user has
|
||||||
# configured as prefix + ye olde gcc commands
|
# configured as prefix + ye olde gcc commands
|
||||||
CC := $(call dequote,$(CONFIG_TOOLPREFIX))gcc
|
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++
|
CXX := $(call dequote,$(CONFIG_TOOLPREFIX))c++
|
||||||
LD := $(call dequote,$(CONFIG_TOOLPREFIX))ld
|
LD := $(call dequote,$(CONFIG_TOOLPREFIX))ld
|
||||||
AR := $(call dequote,$(CONFIG_TOOLPREFIX))ar
|
AR := $(call dequote,$(CONFIG_TOOLPREFIX))ar
|
||||||
|
|
Loading…
Reference in a new issue