tests/test-pthread tries to link in -lpthread through LDFLAGS instead of LOADLIBES, which obviously fails with --as-needed. Reproducible: Always Steps to Reproduce:
Created attachment 185486 [details, diff] ebuild patch A simple patch, using sed within the ebuild.
*** Bug 262990 has been marked as a duplicate of this bug. ***
added to cvs, thanks http://sources.gentoo.org/sys-devel/flex/flex-2.5.35.ebuild?r1=1.9&r2=1.10