With LDFLAGS="-Wl,--as-needed,--no-undefined", libevent-1.4.11 fails to link libevent_extra.so because it uses symbols from libevent.so, but does not explicitly link to libevent.so. Adding libevent.la to the LIBADD for libevent_extra allows libevent to compile successfully.
Created attachment 196929 [details, diff] Patch to modify ebuild to extend sed expression to fix linking of libevent_extra.so
Could you additionally explain why your patch uses eautoreconf instead of elibtoolize?
The sed expression changes Makefile.am, so Makefile.in needs to be rebuilt. It might be sufficient to use elibtoolize+eautomake, rather than letting eautoreconf do both.
Thank you.
It's in the tree, in -r1. I'll send it upstream as well.
(In reply to comment #5) > I'll send it upstream as well. Never mind that - there isn't anything to send. :)