https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91694
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Can you start by saying what OS this is on? The lib*/configure* in gcc tree can't use linking in all cases due to newlib startup setups, but it is true that in libgomp's configure AC_LINK_IFELSE is used already for most targets (but not all).