https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103866
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- --disable-dlopen doesn't help anyway, we still get: checking whether the /home/jwakely/build-mips-elf/gcc/./gcc/xgcc -B/home/jwakely/build-mips-elf/gcc/./gcc/ -B/home/jwakely/gcc/mips-elf/mipsel-none-elf/bin/ -B/home/jwakely/gcc/mips-elf/mipsel-none-elf/lib/ -isystem /home/jwakely/gcc/mips-elf/mipsel-none-elf/include -isystem /home/jwakely/gcc/mips-elf/mipsel-none-elf/sys-include linker (/home/jwakely/build-mips-elf/gcc/./gcc/collect-ld) supports shared libraries... yes checking dynamic linker characteristics... no checking how to hardcode library paths into programs... immediate checking for shl_load... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [configure-target-libstdc++-v3] Error 1