GNOME Bugzilla – Bug 410806
gnome-pilot doesn't compile when LDFLAGS="-Wl,--as-needed"
Last modified: 2007-02-22 16:26:43 UTC
Please describe the problem: libgpilotconduit fails to link properly when gnome-pilot is compiled with LDFLAGS="-Wl,--as-needed" This bug was first reported in gentoo at http://bugs.gentoo.org/show_bug.cgi?id=88511 I'll attach the patch in a moment Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 83102 [details] [review] gnome-pilot-2.0.15-gpilotd-makefile.patch here is the fix.
Thanks for the patch. This particular bug has already been reported into our bug tracking system. So far I've held off on applying this patch because of the apparently experimental nature of --as-needed. However, after looking at the patch, it seems that the patch merely facilitates --as-needed rather than enabling it, so I guess there shouldn't be any risk in applying it. *** This bug has been marked as a duplicate of 360191 ***
sorry for duplicating the bug, I should've appended ALL to my search terms :) FYI, I think (but I might be wrong) that with binutils-2.17, --as-needed is considered "stable". In gentoo, --as-needed bugs cannot be closed until a proper fix is found since a year or so (don't remember exactly). --as-needed is a linker option, it doesn't need anything in your code to be supported apart from proper linking instructions. I think this patch is the smallest fix possible (in the sense that you can fix the problem in other ways but this one requires the smallest possible changes). anyway, thanks for applying
erm, btw, the duplicated bug number is of by one (should be 360190)