From dc909fec64be7e1fb0eb74e4f9a99ad514d4cf1d Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 26 Feb 2016 17:49:08 -0500 Subject: build system: added fallback host recipe. --- sysinfo/compiler/clang.mk | 4 +++- sysinfo/compiler/cparser.mk | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'sysinfo/compiler') diff --git a/sysinfo/compiler/clang.mk b/sysinfo/compiler/clang.mk index ba9ecfc..77b4b86 100644 --- a/sysinfo/compiler/clang.mk +++ b/sysinfo/compiler/clang.mk @@ -1,9 +1,11 @@ ifeq ($(CROSS_COMPILE)x,x) CROSS_HOST = CROSS_HOST_SPEC = -else +else ifeq ($(CROSS_HOST)x,x) CROSS_HOST = $(HOST) CROSS_HOST_SPEC = --target=$(HOST) +else + CROSS_HOST_SPEC = --target=$(CROSS_HOST) endif diff --git a/sysinfo/compiler/cparser.mk b/sysinfo/compiler/cparser.mk index a57cdcc..6c4dc8e 100644 --- a/sysinfo/compiler/cparser.mk +++ b/sysinfo/compiler/cparser.mk @@ -1,9 +1,11 @@ ifeq ($(CROSS_COMPILE)x,x) CROSS_HOST = CROSS_HOST_SPEC = -else +else ifeq ($(CROSS_HOST)x,x) CROSS_HOST = $(HOST) CROSS_HOST_SPEC = --target=$(HOST) +else + CROSS_HOST_SPEC = --target=$(CROSS_HOST) endif -- cgit v1.2.3