This is the mail archive of the gcc-bugs@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]

CPP problem w/ limits.h when building cross-compiler


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


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