From b59520a939af9869f6a0f84848d2be5c59a64fc1 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 21 Sep 2015 20:52:32 -0400 Subject: build system: use toolchain as a build_cc default. --- configure | 7 +++++++ sysinfo/toolchain/clang.mk | 6 +++--- 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 -- cgit v1.2.3