When emerging with $ROOT, the Linker still tries to link against the Build-System Libraries.
I don't know yet, how to work around this. In my case,
ROOT="/var/ppc-system" PORTAGE_CONFIGROOT="/var/ppc-system" emerge bash
tries to use the libraries in my System ROOT an not the /var/ppc-system ROOT. This linkage will surely fail because they won't be compatible. In case of bash, it is the lcurses library.
I found nowhere an information how to tell the linker, to use the ROOT, gcc semms to behave right.
This bug belongs to http://bugs.gentoo.org/show_bug.cgi?id=137867
Created attachment 98011 [details]
bashrc for cross compiling bash
This is what I've used in /etc/portage/bashrc to cross compile bash. It's not portage's job to support this type of cross-compiling logic. It belongs in the ebuild and/or eclasses.
Of course, the bashrc would go under PORTAGE_CONFIGROOT...
Thanks, this was the point for most of the packages I think. Hope there are not so much other things that need fixing ;-)