summaryrefslogtreecommitdiffhomepage
path: root/sysinfo/compiler/cparser.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sysinfo/compiler/cparser.mk')
-rw-r--r--sysinfo/compiler/cparser.mk4
1 files changed, 3 insertions, 1 deletions
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