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.
Created attachment 172559 [details]
Created attachment 181831 [details, diff]
Patch to modify files/audtty-0.1.9a-cc-and-destdir.patch for proper link ordering
The upstream Makefile places libraries before the object files, so --as-needed discarded the references. Gentoo already patches the upstream Makefile to convert "cc" to "$(CC)". That line needs an additional modification to put the libraries later on the line. For simplicity, the attached patch modifies the existing Gentoo patch so that the libraries are reordered, in addition to the changes the Gentoo patch previously applied. Thus, to fix the bug, use the attached patch to modify files/audtty-0.1.9a-cc-and-destdir.patch and commit the resulting patch file.
Your contribution to Gentoo Linux is highly appreciated :)
+*audtty-0.1.9a-r1 (18 Feb 2009)
+ 18 Feb 2009; <email@example.com>
+ files/audtty-0.1.9a-cc-and-destdir.patch, -audtty-0.1.9a.ebuild,
+ Bump up audacious DEPEND to v1.5 where the D-Bus mess has been sorted out.
+ Patch by Kevin Pyle <firstname.lastname@example.org> fixes link ordering and
+ closes bug #247822 filed by Diego E. Flameeyes Pettenò