Hi, >This then leads onto the next problem emerge'ing 'libX11'. > > 'checking whether malloc(0) returns NULL... configure: error: cannot >run test program while cross compiling'. > >I'm quite new to cross compiling. I can see what the problem is - configure >cant run any programs in the target environment to fill out config.guess - >because its running on the host. Is there any well known way of working >around this other then trying to manually write a config.guess for the >packages that can't configure themselves for the target environment?
I have resolved this problem I think by referring to the Xorg cross compilation guide. It seems I need to pass --enable-malloc0returnsnull to configure, set CC_FOR_BUILD and apply a few patches. This appears to indicate though that cross compiling Xorg is not really supported under gentoo? Presumably this would be done when the 'cross' USE flag is set otherwise? Is this the case or am I missing something obvious ? >Since sending my last post I have found: > > cp -r /tmp/target/usr/include/X11 >/usr/i686-pc-linux-uclibc/sys-include/ > >'fools' it into building. Does anyone know a 'proper' way of getting this >working ? This though despite much searching I can't seem to find out what I should(the proper way) do to make these header files available to the cross compiler ? Thanks Ryan -- [email protected] mailing list -- [email protected] mailing list
