A real fix would probably involve looking to see if GNU ld is used with gcc, which is a much more involved test than what we currently do.