Attempting to merge glibc-2.3.2 (using portage-2.0.49_pre17) with
CHOST=powerpc-unknown-linux-gnu and CBUILD=i686-pc-linux-gnu results in a
* Configuring GLIBC...
checking build system type... powerpc-unknown-linux-gnu
checking host system type... powerpc-unknown-linux-gnu
checking size of long double... configure: error: cannot compute sizeof (long
Modifying the ebuild with code stolen from ebuild.sh, as attached, fixes this
Created attachment 16105 [details, diff]
Patch to enable glibc crossbuild
This patch enables cross-building of the glibc ebuild.
Actually, after thinking about it more, I'd suggest that the offending code in the ebuild be deleted and the econf() method be used instead, passing the needed additional options in EXTRA_ECONF.
There is cross projects/bugs going, please look there first.
What about the argument that ebuilds should use econf intead of a "roll your own" conf? That would fix my problem without being a cross compilation issue, or affecting other users.