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 246595 [details] Build log
x86_64-pc-linux-gnu-gcc [...] -Wl,--as-needed [...] -o dvda [...] make[3]: Leaving directory '/var/tmp/portage/media-sound/dvda-author-10.06/work/dvda-author-10.06/src' Works well for me, checking if someone else can reproduce this...
(In reply to Tom Wijsman (TomWij) from comment #2) > x86_64-pc-linux-gnu-gcc [...] -Wl,--as-needed [...] -o dvda [...] > make[3]: Leaving directory > '/var/tmp/portage/media-sound/dvda-author-10.06/work/dvda-author-10.06/src' > > Works well for me, checking if someone else can reproduce this... forced asneeded is not the same thing as -Wl,--as-needed in LDFLAGS. forced asneeded means -Wl,--as-needed is added directly to the gcc specs. see Diego's blog about this.
+ 10 May 2014; Tom Wijsman <TomWij@gentoo.org> +dvda-author-10.06-r1.ebuild: + [QA] Revision bump. EAPI 5. Support --as-needed specification by reordering + the linker command; fixes bug #336597, filed by Diego (flameeyes), with help + from Samuli (ssuominen). Thank you very much for filing this.