depends: Do not consider CC environment variable when detecting system

Otherwise, the build system fails to detect cross-compiling mode
properly in some cases when `CC` is set.
This commit is contained in:
Hennadii Stepanov
2026-01-20 17:49:46 +00:00
parent 7f5ebef56a
commit b149a28f6b

View File

@@ -49,7 +49,7 @@ FALLBACK_DOWNLOAD_PATH ?= https://bitcoincore.org/depends-sources
C_STANDARD ?= c11
CXX_STANDARD ?= c++20
BUILD = $(shell ./config.guess)
BUILD = $(shell unset CC && ./config.guess)
PATCHES_PATH = $(BASEDIR)/patches
BASEDIR = $(CURDIR)
HASH_LENGTH:=11