This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/31186] -I/usr/include not taken into account
- From: "vincent at vinc17 dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 May 2007 21:50:44 -0000
- Subject: [Bug preprocessor/31186] -I/usr/include not taken into account
- References: <bug-31186-6373@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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