[Mesa-dev] [PATCH] mesa: Enable LTO compilation
Emil Velikov
emil.l.velikov at gmail.com
Tue May 31 14:57:12 UTC 2016
On 31 May 2016 at 15:34, Chuck Atkins <chuck.atkins at kitware.com> wrote:
> I've been using lto for the past several weeks not for performance reasons
> but to reduce the resulting binary size which has grown to be rather
> substantial. I usually set "-flto -ffat-lto-objects
> -flto-odr-type-merging" in the CFLAGS and CXXFLAGS env vars prior to
> configure and have yet to experience any problems with the files in mapi./
>
> Thanks for the confirmation Chuck. It matches what I'm seeing when
building using only "-flto".
On the binary size topic - please make sure you include only the drivers
that you need in --with-dri-drivers and --with-gallium-drivers. Otherwise
you'll end up with 'megadrivers' (all the drivers in a single binary) with
hardlinks for each driver instance. The latter is for backwards
compatibility.
-Emil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160531/346cd782/attachment.html>
More information about the mesa-dev
mailing list