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
Diego could you attach log please? It compiles fine for me...
Sorry it compiles fine but it doesn't link -lm (it's passed before $^ which is the list of object files to link together), and the stuff that uses dumb will then be failing.
Created attachment 216064 [details, diff] adding epatch to ebuild
Created attachment 216065 [details, diff] fixing as-needed issues also made it respect user LDFLAGS
I've added the patch. Thanks for your help.
I unified the PIC and the as-needed patch now, as the PIC patch is the one which adds -lm before the objects and brings in the as-needed problem that way. Also made the patch usefull for dumb and aldumb (has no maintainer) because they already share the same source archive anyway.