unfortunately the patch won't work correctly.
libtool appends linker flags at the end of command line (after linked
libraries), so -Wl,--as-needed is useless, the ordering comes from
libtool.m4 so until that is fixed (or somebody fixes ld to not depend on
the order of arguments) it's impossible to
You can have my
Tested-by: Kai Wasserbäch
for that, since it is essentially the same as attachment 108315 from bug 85380.
Please add a reference to that bug report.
And now I abuse this to send a ping for the fix for bug 70410 (there should be a
patch for this on the list): can we add "--system-l