The attached patch fixes the way linking is done for libcroco, allowing the use of --as-needed for libcroco itself and anything that uses libcroco. The simple change makes just sure that libxml2 is linked in the library, rather than in the final executable only. It requires the ebuild to run automake (or eautomake from autotools eclass), as it changes Makefile.am. Thanks, Diego
Created attachment 76217 [details, diff] libcroco-0.6.0-asneeded.patch
Patch added to cvs, thanks very much :)
It was eautomake not eautoconf, I fixed it in the ebuild. (it touches Makefile.am not configure.ac).