Created attachment 25250 Verbose linker output.
When I try to build udev with gcc-4.6.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.
Created attachment 25250
Verbose linker output.
When I try to build udev with gcc-4.6.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.