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
Use -Wl,--as-needed instead
This should fix the problem of using llvm split libraries.
Since the component split may change it's safer to list everything and let
linker filter out the unneeded ones.
CC: Tom Stellard
CC: Emil Velikov
CC: k...@dev.carbon-project.org
Signed-off-by: Jan Vesely
---