http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54304
--- Comment #13 from Marc Glisse <glisse at gcc dot gnu.org> 2012-08-17 22:06:07 UTC --- (In reply to comment #12) > Well, directories given by -I are searched before system directories, Yes (system directories are those given by -isystem or hardcoded in the compiler). > -L adds directories to the end of the library search list, No, there are also system directories afterwards. Not that system directories are relevant here...