I have created a custom x86 toolchain using crosstool-ng, however I don't know how to use it with depends. E.g. this doesn't work:
export PATH=$PATH:$HOME/x-tools/x86_64-unknown-linux-gnu
# contains x86_64-unknown-linux-gnu-gcc, g++ etc
make HOST=x86_64-unknown-linux-gnu
However when looking at the output of e.g. OpenSSL build it is using the system-wide gcc:
...
gcc -m64 -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -DOPENSSL_THREADS -D_REENTRANT -pipe -O2 -I/home/user/bitcoin-x86_64/depends/x86_64-unknown-linux-gnu/include -fPIC -Wa,--noexecstack -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -c -o randfile.o randfile.c
Is there any specific trick I need to use, or an option I can override?
(I guess I can trick it by removing the prefix from my toolchain so that it names them gcc etc, but I'd be afraid it mixes with the system compiler/bintools)