[Libreoffice] [GSoC] link-time optimization

Matúš Kukan matus.kukan at gmail.com
Wed Sep 21 02:43:21 PDT 2011


Hi Honza,

On 14 September 2011 11:59, Jan Hubicka <jh at suse.de> wrote:
> Hi,
> thanks to Michael I made some progress on building Libreoffice on my setup.
> The problem of configury was that -flto was not passed at linktime and also
> -fuse-linker-plugin was missing.
>
-flto should be passed when linking dynamic libraries.
What is -fuse-linker-plugin doing? Do we need it?
I made lto to work (or tried to do so) just for dynamic libraries.
Maybe that should be changed and used always?

> My build currently dies on svx on GCC bug. I've created tracking PR
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50394
> I will continue fixing issues until I link svx and lets see what we could do
> next.
>
> There are however quite few errors reported by g++ 4.7.  It would really
> rock if someone tried to build libreoffice with mainline GCC and no lto and
> fixed those.
> Also -fpermissive is needed.
>
With -fpermissive and without system boost I was able to build.

Thanks for working on this.

Matúš


More information about the LibreOffice mailing list