If I use CARGO_TARGET_<triple>_RUSTFLAGS to set -C linker=/usr/bin/cc (or do so with similar environment variables, or Cargo.toml configuration) is it also necessary that cc be visible on PATH?
I've been stuck on a bug for a few days that appears to be fixed by ensuring my cargo invocation has the environment variable PATH=/usr/bin set. But this feels like it shouldn't be necessary if we specify the absolute path to the linker.
Ah, that's a very real possibility. So I take it there's no standard environment variable that dependencies can look to for a linker? Nothing stops a build.rs file from just invoking an unqualified cc, anyway.