[Mesa-dev] Shrinking mesa binaries.
Kenneth Graunke
kenneth at whitecape.org
Fri Aug 24 19:03:14 PDT 2012
On 08/24/2012 11:45 AM, nerdopolis wrote:
> Hi.
>
> I hope this is the correct place for this.
>
> I make a Wayland live cd, and in order for Wayland to work, I need to build mesa with Wayland support.
>
> I get Mesa to build just fine it's just that I notice that the binaries in /egl /dri and /gbm are MUCH larger then the ones provided by the distro, and it's taking up a good amount of space on the LiveCD.
>
> for instance:
> The egl_gallium that gets built is 20mb while the one in the distro is 6MB
> The dri folder that gets built is 87mb while the distro is 15MB
> The gbm folder that gets built is 55mb while the distro is 5mb
>
> What do I need to do to shrink these binaries, and to get it to work on the most possible machines? I notice --enable-shared-dricore that I read about appears to be gone, and I tried using the strip command on the binaries.
>
>
> These are the options I pass
> ./autogen.sh --prefix=$WLD --enable-shared-dricore --enable-openvg --enable-gles1 --enable-gles2 --with-gallium-drivers=nouveau,svga,r300,r600,swrast --with-egl-platforms=x11,wayland,drm --enable-gbm --enable-shared-glapi --enable-gallium-egl --libdir=$WLD/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)
>
> Thanks.
We removed --enable-shared-dricore because it's now non-optional---you
get it all the time. Unfortunately, in our recent automake rework, it
sounds like we lost some of the visibility flags, which probably
explains the huge binaries you're seeing. I believe Matt's working on a
fix for that.
More information about the mesa-dev
mailing list