http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54304
--- Comment #9 from Marc Glisse <glisse at gcc dot gnu.org> 2012-08-17 19:40:19 UTC --- Well, there is the usual problem that if you use external libraries A and B that are both installed in both path1 and path2 and you want A from path1 and B from path2, that's not possible. The difference here is that we know in-tree locations are safe (no unwanted library in there). So instead of just putting -I and -L flags to these locations as they appear, we should put the safe ones in front. That complicates things a bit...