libvirt is broken with the --as-needed linker flag because src/.libs/libvirt.a does not link against libxml2. http://www.gentoo.org/proj/en/qa/asneeded.xml describes --as-needed and how to fix problems with it in more detail.
Seems fixed in the latest version.