https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64390
--- Comment #3 from Hin-Tak Leung <htl10 at users dot sourceforge.net> --- I wonder if it isn't '-shared' but that a mixture of object files and archives are being used. See also: http://stackoverflow.com/questions/27372667/undefined-reference-cross-compiling-static-libraries-with-lto-under-gcc I 'll give binutils 2.25 a try soon - I have got something building atm; it looks like I need to move my system's ar & ld aside to make sure the new ones are used, which is not trivial, and can't happen while I have something building anyway...