Bug#731393: Acknowledgement (gcc-snapshot: "undefined reference" link error when compiling with LTO)
Sorry, forgot to say: Yes, you are supposed to use the gcc- wrappers and it works when you do. (I had the same problem.)
Bug#731393: Acknowledgement (gcc-snapshot: "undefined reference" link error when compiling with LTO)
I notice that gcc 4.9 has the same issue, but that the gcc 4.9 release notes say you should use "gcc-ar" instead of ar to make it work correctly in conjunction with LTO (and similarly "gcc-ranlib" instead of ranlib). In my testing, it seems to work correctly... so... maybe this bug should be close