Is it possible to compile glibc with lto?

Ian Lance Taylor iant@google.com
Fri Apr 23 15:47:00 GMT 2010


"Amker.Cheng" <amker.cheng@gmail.com> writes:

>   there is description on how to use the new lto feature normally,

See the documentation of -flto in the gcc manual.

> I'm wondering whether it is possible to compile glibc with lto ?
> also, seems that it is impossible to do lto when linking with shared object?

As far as I know you can use LTO when generating a shared object,
though it can't eliminate functions.

Ian



More information about the Gcc-help mailing list