Content originally posted in LPCWare by fancypants on Sat Mar 22 11:50:18 MST 2014
Posting for LPCXpresso support awareness, as well as a work-around solution for anyone else who needs a solution to this, unless this is specific to my installation only:
I'm running LPCXpresso 7.0.2 on OSX 10.9.2 and when I "enable link-time optimization (-flto)" I get a "error loading liblto_plugin.so" at the end of the link process. It seems that "liblto_plugin.so" in the tools/lib/gcc/arm-none-eabi/4.8.3 should be pointing to "liblto_plugin.0.so" in the same folder, but isn't. Forcing "liblto_plugin.so" to point to "liblto_plugin.0.so" didn't work for me so just making a copy of "liblto_plugin.0.so" and renaming it to "liblto_plugin.so" solved it.
Hope this helps.