This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]