https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105305
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >The code to explicitly exclude "obvious" directories is here That code has been there since before 1993. So I wonder if all other ld's always included /usr and /usr/lib by default. It is only the newer ones which don't. Does POSIX say anything about ld behavior?