This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem/bug with include directory order


On Tue, Jan 07, 2003 at 06:09:33PM +0100, Christian Ehrhardt wrote:
> IMHO this is a bug. The expected "semantic" of the fixed include files
> should be exactly as if the original file had been replaced with the fixed
> version, i.e: First check for the include file in the normal directories then
> see if that specific include file needed fixing and use the fixed version
> instead. This can be achieved if the directory with the fixed header files
> is searched immediatly before the directory with the original files which
> is not the case on my system.

I agree.  However:

> Comments? If this is a bug I'll file a PR with GNATS. If it is not a bug
> is there some spec-file magic that I can do to get the search order that
> I want, i.e.:
>  /usr/local/include
>  /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2/include
>  /usr/include

No, what you need is a new separate directory for the fixed header
files; GCC's include directory must still come first.


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]