This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Update LTO plugin interface
"H.J. Lu" <hjl.tools@gmail.com> writes:
> g++ adds -lm since libstdc++ uses libm. If we do it in gcc, we may
> add run-time dependency on libm.so to all C programs even if they
> don't use libm at all.
No. All the gcc driver has to do is: *if* -lm is used on the link line,
also add it after the use of --plugin-callback.
> Your proposal means we have to add lots of library references to
> GCC driver. I am not sure if it is a good idea.
No. No library references have to be added.
Ian