From 8bc13c5528e2e15702c3d7628540094b5f3e1ad9 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 15 Aug 2018 14:41:40 -0400 Subject: [PATCH] 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.) --- build/jam/BuildSetup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index 4806ec6a33..550a230862 100644 --- a/build/jam/BuildSetup +++ b/build/jam/BuildSetup @@ -211,8 +211,8 @@ if $(HAIKU_HOST_USE_32BIT) = 1 { # save jam's variables for the build platform HOST_AR ?= $(AR) ; HOST_CC ?= $(CC) ; -HOST_C++ ?= $(C++) ; -HOST_LINK ?= $(LINK) ; +HOST_C++ ?= $(HOST_CC) ; +HOST_LINK ?= $(HOST_CC) ; HOST_RANLIB ?= $(RANLIB) ; HOST_CPPFLAGS ?= $(CPPFLAGS) ; HOST_CCFLAGS ?= $(HOST_GCC_BASE_FLAGS) $(CCFLAGS) ;