AArch64: Build failure with CC=clang on GHC HEAD
## Summary
When configuring on ARM with CC=clang I see build errors like:
```
Configuring deriveConstants-0.1...
configure: WARNING: unrecognized options: --with-cc
checking for aarch64-unknown-linux-gcc... /usr/bin/gcc
checking for aarch64-unknown-linux-gcc... /usr/bin/gcc
checking whether the C compiler works... checking whether the C compiler works... no
configure: error: in '/home/andi/ghc_clang/_build/stage0/libraries/terminfo/build':
configure: error: C compiler cannot create executables
```
Why does does happen? It seems we end up using `gcc` as C compiler when configuring some of the libraries
anyway, while also setting some C compiler flags which gcc doesn't understand (but clang does) resulting in errors like the one below in the configure log.
```
gcc: error: unrecognized command-line option '--target=aarch64-unknown-linux'
```
Seems to me that we determine C flags for the stage1/2 C compiler, but then also use the same C flags for the stage0 compiler, which in this case doesn't understand them causing errors.
## Steps to reproduce
```
export CC_STAGE0=gcc CC=clang CXX=clang
./configure
hadrian/build -j
```
## Expected behavior
What do you expect the reproducer described above to do?
## Environment
* GHC version used:
Optional:
* Operating System:
* System Architecture:
issue