http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225
--- Comment #34 from Paolo Bonzini <bonzini at gnu dot org> 2011-02-08 08:06:28 UTC --- Iain, the correct fix is to add -module to the LTO plugin LDFLAGS. This changes the extension from .dylib to .so.