------- Comment #4 from vincent at vinc17 dot org 2007-05-22 22:50 ------- (In reply to comment #3) > My recollection is that the special -I behavior is there because > the system headers have special non-warning properties. > This situation doesn't apply to -L.
But this introduces an inconsistency, with the effect that the version of the header and the version of the library do not match. > Generally speaking this is not a good idea. Usually people *want* their > environment to influence configure, and usually if configure overrides this > it means difficult to fix problems on weirder systems. But configure does override the user's environment for non-system directories (and even system directories concerning -L). That's not logical. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31186