Update LTO plugin interface
H.J. Lu
hjl.tools@gmail.com
Thu Dec 2 19:44:00 GMT 2010
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.
More information about the Gcc
mailing list