When building depends on FreeBSD/OpenBSD aarch64
, the host compilers default to default_host_{CC,CXX}
, which resolves to gcc
/g++
. This is incorrect on these systems, where Clang is the default system compiler.
To ensure proper compiler selection, this PR adopts the same approach used for darwin
:https://github.com/bitcoin/bitcoin/blob/c1d4253d316ea627f46b26e395d7b48842258381/depends/builders/darwin.mk#L12-L14
Fixes #32691.