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]
Other format: [Raw text]

[Bug preprocessor/48957] GCC's handling of include-fixed does not work well with --sysroot


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48957

--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-05-11 10:16:53 UTC ---
On Wed, 11 May 2011, psmith at gnu dot org wrote:

> I think that the include-fixed directory should be associated with the sysroot,

It should be associated with each system include directory (sysroot or 
otherwise) - so there should be a fixed version of /usr/local/include, 
searched immediately before /usr/local/include, and likewise for 
/usr/include.  But there are certainly sysroot uses where include-fixed is 
still relevant - where the sysroot is based on a copy of that used when 
GCC was built, but with extra libraries added.  (That's the case of 
sysroots that works most reliably for other reasons as well; GCC's runtime 
libraries get configured depending on the libc libraries and headers 
present when GCC was built, and in some cases the headers affect the 
configuration of GCC itself as well as GCC's libraries.)

http://gcc.gnu.org/ml/gcc-patches/2010-07/msg02088.html
http://gcc.gnu.org/ml/gcc/2004-11/msg00255.html


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