I ran into something similar when trying to build SBCL on windows with Cygwin and CC=x86_64-w64-mingw32-gcc. The config file src/runtime/Config.x86-64-win32 uses CC=gcc even though I was trying to build with Mingw32. I was able to get around it by modifying the file to use CC ?= gcc.
I didn't try it, but using LD ?= ld might work for you in src/runtime/GNUmakefile.
I ran into something similar when trying to build SBCL on windows with Cygwin and CC=x86_ 64-w64- mingw32- gcc. The config file src/runtime/ Config. x86-64- win32 uses CC=gcc even though I was trying to build with Mingw32. I was able to get around it by modifying the file to use CC ?= gcc.
I didn't try it, but using LD ?= ld might work for you in src/runtime/ GNUmakefile.