Created attachment 321648 [details, diff] netsurf-cross-compile.patch I have found that NetSurf and some of its dependencies fail to cross-compile despite earlier measures to address this. I am attaching a patch that fixes all of these issues. I thought it would be easiest to tackle them all in one go, especially since most of them simply involve writing to Makefile.config instead of Makefile.config.override. The latter doesn't seem to be used any more. For dev-libs/libcss, the build-time-only binary gen_parser was being built by HOST_CC. I have replaced this with tc-getBUILD_CC. For NetSurf itself, it was calling xml2-config instead of using pkg-config. I'm not sure why because they used pkg-config for everything else.
+ 11 Nov 2012; Michael Weber <xmw@gentoo.org> libcss-0.1.2.ebuild: + Cross compile fix (bug 431884, James Le Cuirot)
+ 27 Feb 2013; Michael Weber <xmw@gentoo.org> libnsfb-0.0.2.ebuild, + +files/libnsfb-0.0.2-autodetect.patch, libnsfb-9999.ebuild: + Add use flags sdl, vnx, xcb (thanks a.m@freemail.hu, bug 458978). Restore + cross-compile functionality (thanks James Le Cuirot, bug 431884) +
+ 27 Feb 2013; Michael Weber <xmw@gentoo.org> libwapcaplet-0.1.1.ebuild: + Restore cross-compile functionality (thanks James Le Cuirot, bug 431884)
+ 27 Feb 2013; Michael Weber <xmw@gentoo.org> libparserutils-0.1.1.ebuild: + netsurf eclass preparation. Restore cross-compile functionality (thanks James + Le Cuirot, bug 431884) +
+ 28 Feb 2013; Michael Weber <xmw@gentoo.org> libnsgif-0.0.3.ebuild: + netsurf eclass preparation. Restore cross-compile functionality (thanks James + Le Cuirot, bug 431884)
+ 28 Feb 2013; Michael Weber <xmw@gentoo.org> netsurf-2.9.ebuild: + Restore cross-compile functionality (thanks James Le Cuirot, bug 431884) +