I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details). Please note that this bug _might_ apply to -Wl,--as-needed in LDFLAGS as well; in both cases it should be fixed. Also, if this is due to the package in question not respecting user-defined LDFLAGS, you should get to fix that too. Check the attached build log. Thanks, Diego P.S.: the tests fail because the library has undefined references, software using dclib would also fail.
Created attachment 202020 [details] Build log
Failed to reproduce that. Could it be that something linked to dclib/.libs/libdc.so is missing pthreads instead??
Created attachment 224517 [details, diff] adding epatch and autotools + update Summary of changes: * added base.eclass to skip src_install * bumped to EAPI=2 to get src_prepare * added missing RDEP="$DDEP" * added epatch and autoreconf, since I'm meddling with m4 macro
Created attachment 224519 [details, diff] fixing as-needed issues
(In reply to comment #2) > Failed to reproduce that. Could it be that something linked to > dclib/.libs/libdc.so is missing pthreads instead?? It was failing in test phase, I don't even remember why I couldn't reproduce it back then.
+ 23 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> dclib-0.3.23.ebuild, + +files/dclib-0.3.23-asneeded.patch: + Fix building with -Wl,--as-needed wrt #282426 by Kacper Kowalik. Fix + missing USE="socks5" and USE="ssl" wrt #285661 by Andreis Vinogradovs.