[Bug 872687] Re: c++ -flto always results in unresolved symbols
    Matthias Klose 
    doko at ubuntu.com
       
    Wed Oct 12 20:38:33 UTC 2011
    
    
  
better work arounds are
 - use -Wl,--no-as-needed
 - use gold (-B/usr/lib/gold-ld/)
** Package changed: gcc-defaults (Ubuntu) => binutils (Ubuntu)
** Changed in: binutils (Ubuntu)
   Importance: Undecided => High
** Changed in: binutils (Ubuntu)
       Status: New => Confirmed
** Bug watch added: Sourceware.org Bugzilla #13287
   http://sourceware.org/bugzilla/show_bug.cgi?id=13287
** Also affects: binutils via
   http://sourceware.org/bugzilla/show_bug.cgi?id=13287
   Importance: Unknown
       Status: Unknown
-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to binutils in Ubuntu.
https://bugs.launchpad.net/bugs/872687
Title:
  c++ -flto always results in unresolved symbols
Status in binutils:
  Unknown
Status in “binutils” package in Ubuntu:
  Confirmed
Bug description:
  =======main.cc =====
  int main() {}
  ===================
  c++ -flto main.cc
  results in unresolved symbol errors on latest oneiric beta
  Adding -static is a work around
To manage notifications about this bug go to:
https://bugs.launchpad.net/binutils/+bug/872687/+subscriptions
    
    
More information about the foundations-bugs
mailing list