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 172691 [details] Build log
Created attachment 177056 [details, diff] Patch to add -lpthread to the LIBS line in daemon/Makefile The Makefile rule was mostly correct. The failure reported in comment #0 is because the Makefile incorrectly uses LDFLAGS to add -lpthread, so the library option is too far left in the command line. This patch adds -lpthread to LIBS, so that it is reiterated in the correct place after the linker encounters a dependency on pthread functions. My patch for bug #253412 will remove the inappropriate use of -lpthread in LDFLAGS. Applying this patch without that one should be harmless, since it will merely result in referencing libpthread twice.
*** Bug 247258 has been marked as a duplicate of this bug. ***
Patch applied in net-fs/autofs-5.0.4
*** Bug 278608 has been marked as a duplicate of this bug. ***