The attached patch adjusts the --with-sysroot option to configure in toolchain.eclass so that cross-toolchains can be built inside prefixes. Otherwise compilation of libgcc will fail because libc.so.6 can not be found in /usr/$CTARGET/lib instead of $EPREFIX/usr/$CTARGET/lib. Reproducible: Always
Created attachment 434636 [details, diff] Adjust for cross-compilation in prefix
Thanks Michael, the patch is considered in bug 531610. *** This bug has been marked as a duplicate of bug 531610 ***