summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-09-21 20:52:32 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:21 -0500
commitb59520a939af9869f6a0f84848d2be5c59a64fc1 (patch)
tree7ad6be06b439d8480622045812084739b55b0fa4
parent8eedf233f6e6e284e03dc41c0bd4648aca561fca (diff)
downloadperk-b59520a939af9869f6a0f84848d2be5c59a64fc1.tar.bz2
perk-b59520a939af9869f6a0f84848d2be5c59a64fc1.tar.xz
build system: use toolchain as a build_cc default.
-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