diff options
author | midipix <writeonce@midipix.org> | 2015-09-21 20:52:32 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:21 -0500 |
commit | b59520a939af9869f6a0f84848d2be5c59a64fc1 (patch) | |
tree | 7ad6be06b439d8480622045812084739b55b0fa4 | |
parent | 8eedf233f6e6e284e03dc41c0bd4648aca561fca (diff) | |
download | perk-b59520a939af9869f6a0f84848d2be5c59a64fc1.tar.bz2 perk-b59520a939af9869f6a0f84848d2be5c59a64fc1.tar.xz |
build system: use toolchain as a build_cc default.
-rwxr-xr-x | configure | 7 | ||||
-rw-r--r-- | sysinfo/toolchain/clang.mk | 6 |
2 files changed, 10 insertions, 3 deletions
@@ -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 |