Clang linker frontend forwards linking to gcc on x86_64-none-unknown-elf

Hi

I want to use clang with -flto on a x86_64-none-unknown-elf target (or i386-none-unknown-elf).
For some reason clang forwards the actual linking to gcc, which can be seen with -v.

So why is clang fording this linking to GCC? This does not happen on ARM and ARM64 or other -targets triplets.

The actual GCC in use “/usr/bin/gcc”. Is there a way to change this as I’m working in a cross compiler environment where the GCC I want to use is in a different path. Is there a way to tell clang to forward linking to a different path GCC?

Kind regards