BuildSetup: Default HOST_C++ and HOST_LINK to HOST_CC.

Now that HOST_CC is actually passed in, we need to default
everything to it; otherwise, it's up to the Jambase as to
what CC we are actually using.

Found by trying to build Haiku on a system that has no "cc"
executable, but Jam tried to use it anyway (as all three of CC,
C++, and LINK.)
This commit is contained in:
Augustin Cavalier
2018-08-15 14:41:40 -04:00
parent b57e7df9ef
commit 8bc13c5528
+2 -2
View File
@@ -211,8 +211,8 @@ if $(HAIKU_HOST_USE_32BIT) = 1 {
# save jam's variables for the build platform # save jam's variables for the build platform
HOST_AR ?= $(AR) ; HOST_AR ?= $(AR) ;
HOST_CC ?= $(CC) ; HOST_CC ?= $(CC) ;
HOST_C++ ?= $(C++) ; HOST_C++ ?= $(HOST_CC) ;
HOST_LINK ?= $(LINK) ; HOST_LINK ?= $(HOST_CC) ;
HOST_RANLIB ?= $(RANLIB) ; HOST_RANLIB ?= $(RANLIB) ;
HOST_CPPFLAGS ?= $(CPPFLAGS) ; HOST_CPPFLAGS ?= $(CPPFLAGS) ;
HOST_CCFLAGS ?= $(HOST_GCC_BASE_FLAGS) $(CCFLAGS) ; HOST_CCFLAGS ?= $(HOST_GCC_BASE_FLAGS) $(CCFLAGS) ;