https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54586
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- The difficulty is that every case where configure sets gcc_no_link is generated from the same file: ../config/no-executables.m4 So adding something in there doesn't actually give you any context. Each configure.ac (or .m4 file it uses) needs to add some context when using the GCC_NO_EXECUTABLES macro.