If LTO was used here I'd say this was https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51744 but that doesn't appear to be the case from the log.
** Bug watch added: GCC Bugzilla #51744 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51744 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1352836 Title: link failure when package is built with -O3 (14.10) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-4.9/+bug/1352836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs