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.: in this case the problem is the test for opencv, so check the config.log as well; the problem is that cvCreateImage is not in libcv (-lcv) but rather in libcxcore.
Created attachment 200730 [details] Build log
Created attachment 200731 [details] config.log
After patching configure.in, AC_CHECK_LIB to find -lcv, it doesn't find the function it's looking from it: checking for cvCreateImage in -lcv... no Futhermore, the build will bail out long before that by setting *any* LDFLAGS to /etc/make.conf with: checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables Which is caused by this mess in the ebuild: econf LDFLAGS="${LDFLAGS//-Wl,/ }" || die Masked for removal, been in tree 2 years non-functional.
Removed from tree.