summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure7
-rw-r--r--sysinfo/toolchain/clang.mk6
2 files changed, 10 insertions, 3 deletions
diff --git a/configure b/configure
index 6538554..49cff50 100755
--- a/configure
+++ b/configure
@@ -155,6 +155,13 @@ common_defaults()
mb_cflags_debug='-g3 -O0'
fi
fi
+
+ # toolchain
+ if [ x"$mb_toolchain" != x ]; then
+ if [ x"$mb_build_cc" = x ]; then
+ mb_build_cc=$mb_toolchain
+ fi
+ fi
}
diff --git a/sysinfo/toolchain/clang.mk b/sysinfo/toolchain/clang.mk
index bddb6b9..98e73d6 100644
--- a/sysinfo/toolchain/clang.mk
+++ b/sysinfo/toolchain/clang.mk
@@ -7,9 +7,9 @@ else
endif
-CC = clang $(CROSS_HOST_SPEC)
-CPP = clang $(CROSS_HOST_SPEC)
-CXX = clang++ $(CROSS_HOST_SPEC)
+CC = $(BUILD_CC) $(CROSS_HOST_SPEC)
+CPP = $(BUILD_CC) $(CROSS_HOST_SPEC)
+CXX = $(BUILD_CC)++ $(CROSS_HOST_SPEC)
AS = $(CROSS_COMPILE)as