From b149a28f6b863c85ab45c393e7781d4769b282f6 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Tue, 20 Jan 2026 17:49:46 +0000 Subject: [PATCH] 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. --- depends/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depends/Makefile b/depends/Makefile index fde108d2c2c..c377187b50a 100644 --- a/depends/Makefile +++ b/depends/Makefile @@ -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