OK, so the issues I had with <http://thread.gmane.org/gmane.comp.gnu.libtool.patches/9767> was both changing output_verbose_link_cmd to something that might work worse in a number of setups, and on the other hand having a reliable way to get at postdeps in presence of -flto or -fwhopr or so.
Here's another try. 0) I know that the Right Thing to do would be to re-evaluate this extraction from verbose output completely, with the goal that we do not do it for any GCC any more. Yes. This is something I'd love (somebody) to do, but verifying that all kinds of setups still work afterwards is something *I* don't want to do before 2.2.12. 1) So, instead of trying to do things right in presence of -flto or -fwhopr*, let's just disable these flags, that ought to be fairly safe? 2) In the process I noticed that we use $CC $CFLAGS consistently in output_verbose_link_cmd for different languages, but only set CC to the per-language compiler and forget CFLAGS. 3) In the process of fixing (2) I noticed that we might be using the same variables for saving and restoring some variables in potentially- overlapping macros, and renamed some. I would appreciate a look over for typos and of course agreement that this is an acceptable compromise for now. Thanks, Ralf