Subject: bug#47648: cc-for-target makes --with-c-toolchain unusable for some packages

From: raingloom <[email-masked]>
Date: Thu, 8 Apr 2021 02:33:29 +0200

I tried compiling lua with clang on a whim and found out about
cc-for-target. Not sure if that's the only instance of hardcoded gcc,
but it's certainly a prominent one.

What would be the idiomatic way to fix it? Detect clang dynamically? Or
move cc-for-target inside the build system module and make it available
at build time?