https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86030
--- Comment #3 from Tamar Christina <tnfchris at gcc dot gnu.org> --- Hmm according to 45749 with `HAVE_GNU_LD` on it should work for the ld call. I will give that a try. But the environment variable one is still an issue as far as I can tell.