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). Check the attached build log. Thanks, Diego
Created attachment 172477 [details] Build log
Diego, this package don't use LDFLAGS var, so it cannot possibly be influenced by --as-needed thingie. I've tested it again and in my case just works. Apparently you don't have pthread library on your system, so I'll close this bug as INVALID. Feel free to reopen it if you find other reason for this failure.
Please read http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed . When the summary says "forced --as-needed", the bug is there, and it's just hidden by the fact that the package does not respect LDFLAGS (which is also a bug on its own). My method bypasses the LDFLAGS variable, and acts on the compiler itself.
Fixed in version 1.0.1-r1. I have no idea how you managed to pass --as-needed to the linker. Is there an LDOPTS environment variable used by ld?