I stumbled upon problem when building net-misc/vino (2.12* and 2.13*) with as-needed. The attached patches get the ebuild from gnome-experimantal to build with as-needed
Created attachment 82471 [details, diff] vino-2.13.5-as-needed.patch
Created attachment 82472 [details, diff] vino-2.13.5.ebuild.patch
Created attachment 83659 [details, diff] vino-2.13.5-as-needed.patch Ok, so here's a slightly modified version of the patch that applies to vino in the main portage tree (rather than the version from gnome-experimental). It's a simple reordering of the library definitions...
Patch works fine for me.
*** This bug has been marked as a duplicate of 132558 ***