http://sourceware.org/bugzilla/show_bug.cgi?id=13182
Bug #: 13182
Summary: -flto and -Wl,--as-needed combination removes needed
libraries
Product: binutils
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 5929
--> http://sourceware.org/bugzilla/attachment.cgi?id=5929
Verbose linker output.
When I try to build udev with gcc-4.6.1 and binutils-2.21.1, the accelerometer
module fails to link because of undefined references to sqrt, atan, etc.
Unfortunately -lm is explicitly specified. If I remove -flto or
-Wl,--as-needed, the module links successfully.
Verbose linker output is attached.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils