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
Created attachment 193497 [details] Build log
Please review the following patchset.
Created attachment 205436 [details, diff] First part
Created attachment 205438 [details, diff] Second part My emerge fails on unresolved symbols related to standard math functions, so I've added -lm to AM_LDFLAGS as well.
Comment on attachment 205438 [details, diff] Second part The problem to begin with is that _it shouldn't be passing libraries to AM_LDFLAGS_ !
Created attachment 207336 [details, diff] adding patch to ebuild Just copy of http://bugs.gentoo.org/attachment.cgi?id=205436 for completeness
Created attachment 207337 [details, diff] fixing as-needed issues
in portage. thanks for the patch.