[trunk] RFA: translate built-in include paths for sysroot (issue4641076)

2011-06-26 Thread Chris Demetriou
The setup: Configuring a toolchain targeting x86-64 GNU Linux (Ubuntu Lucid), as a cross-compiler. Using a sysroot to provide the Lucid headers+libraries, with the sysroot path being within the GCC install tree. Want to use the Lucid system libstdc++ and headers, which means that I'm not

Re: [trunk] RFA: translate built-in include paths for sysroot (issue4641076)

2011-06-26 Thread Joseph S. Myers
On Sat, 25 Jun 2011, Chris Demetriou wrote: For the C headers, add_standard_paths prepends the sysroot location to the /usr/include path (since that's what's specified in cppdefault.c for that path). It doesn't do the same for the C++ include path, though (again, as specified in

Re: [trunk] RFA: translate built-in include paths for sysroot (issue4641076)

2011-06-26 Thread Chris Demetriou
On Sun, Jun 26, 2011 at 07:28, Joseph S. Myers jos...@codesourcery.com wrote: It seems to me that what's really wanted here is to change the add_sysroot flag for the C++ path (all of the C++ paths?), rather than adding special code to detect paths starting with the sysroot and reinterpret them.