This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: CPP problem w/ limits.h when building cross-compiler
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: CPP problem w/ limits.h when building cross-compiler
- From: David Connelly <David dot Connelly at Sun dot COM>
- Date: Tue, 08 May 2001 12:46:49 -0700
- Organization: SMI
Sorry, I meant GCC version 2.95.3, not 2.53.3.
- David
> There appears to be a problem with the default includes when
> building a cross-compiler under gcc 2.53.3. In cccp.c, the
> default ordering specifies that GCC_INCLUDE_DIR (fixincludes)
> be searched before LOCAL_INCLUDE_DIR when building a cross
> compiler (it's the other way around when not building one).
> This causes problems with programs which try to include
> "limits.h" as they will pickup the fixincludes version instead
> of what was installed by glibc. Should the fix be just to switch
> the ordering of GCC_INCLUDE_DIR and LOCAL_INCLUDE_DIR?
>
> Thanks,
> David