aboutsummaryrefslogtreecommitdiff
path: root/depends/Makefile
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-01-10 12:16:25 -0500
committerCarl Dong <contact@carldong.me>2020-07-07 16:26:44 -0400
commitc9c572a367f08095a3e2c7c0723da9f6778b9378 (patch)
tree138555e28bca4044aa6d97db90b6a83d1b5d0432 /depends/Makefile
parente6e5c8d6caccb4648fc580e5a01448857c2fdf18 (diff)
downloadbitcoin-c9c572a367f08095a3e2c7c0723da9f6778b9378.tar.xz
depends: Allow building with system clang
Diffstat (limited to 'depends/Makefile')
-rw-r--r--depends/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/depends/Makefile b/depends/Makefile
index 463d10efa2..3ebc3cb6b9 100644
--- a/depends/Makefile
+++ b/depends/Makefile
@@ -156,7 +156,11 @@ $(host_arch)_$(host_os)_native_toolchain?=$($(host_os)_native_toolchain)
include funcs.mk
binutils_path=$($($(host_arch)_$(host_os)_native_binutils)_prefixbin)
+ifeq ($(strip $(FORCE_USE_SYSTEM_CLANG)),)
toolchain_path=$($($(host_arch)_$(host_os)_native_toolchain)_prefixbin)
+else
+toolchain_path=
+endif
final_build_id_long+=$(shell $(build_SHA256SUM) config.site.in)
final_build_id+=$(shell echo -n "$(final_build_id_long)" | $(build_SHA256SUM) | cut -c-$(HASH_LENGTH))
$(host_prefix)/.stamp_$(final_build_id): $(native_packages) $(packages)