https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109306
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to pmorf from comment #2) > Oh. Is there a different implementation I'll link against when telling gcc > to use the c++11 standard ? I am saying that implementation is only used if the host's libc does not have strstr for compiling/linking GCC itself; it is not used otherwise. Otherwise the strstr implementation is in glibc on Linux or Apple's libc on Mac OS X or musl on some Linux distro. Or in Microsoft's libc on Windows.