This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Update LTO plugin interface
On Thu, Dec 2, 2010 at 11:37 AM, Ian Lance Taylor <iant@google.com> wrote:
> "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.
How many libraries specified at command line do we have to check?
How do we handle -Wl, -Wl,-Bstatic/-Wl,-Bdynamic,-Wl,--start-group, ....
and other linker switches?
--
H.J.