This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Bryan, All,No. You'd end up with a broken toolchain, because the headers/libs inside of the sysroot do not correspond to your cross toolchain's GCC (e.g. they might be part of a different version of GCC or correspond to completely different setup). As I tried to express before, libstdc++ and its auxiliary libraries (on some platforms, libstdc++ comes with other helper libraries) are internal GCC libraries. They depends upon GCC, they are GCC-version-dependent, etc. etc.
On Friday 08 October 2010 01:15:07 Bryan Hundven wrote:Good to know we have a workaround.After making the following symlink: ln -s ${CT_SYSROOT_DIR_PREFIX}/sys-root/usr/include ${CT_SYSROOT_DIR_PREFIX}/include Everything works fine.
But I'm not happy with it, though. An absolute path makes the toolchain non-relocatable, and this is a Bad Thing (TM). At least, make it a relative symlink.
Also, I believe that gcc should be somehow taught where to look fot the headers. It is already properly looking at sysroot/usr/include for C headers and looking there for C++ should be the default as well.
-- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |