[Buildroot] [PATCH 1/5] mesa: build statically because of DRI drivers

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Sep 20 06:43:02 UTC 2011


Hello,

Of course, the title should be "mesa: don't build statically because of
DRI drivers". I will send an updated version once others will have
reviewed the patchset.

Regards,

Thomas

Le Mon, 19 Sep 2011 22:57:37 +0200,
Thomas Petazzoni <thomas.petazzoni at free-electrons.com> a écrit :

> The autotargets infrastructure now passes --enable-static to all
> packages. This works for most of them, except for Mesa:
> 
> configure: error: Can't use static libraries for DRI drivers
> make[1]: *** [/home/test/outputs/mesa/build/mesa3d-7.6.1/.stamp_configured] Error 1
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> ---
>  package/x11r7/mesa3d/mesa3d.mk |   15 ++++++++++++++-
>  1 files changed, 14 insertions(+), 1 deletions(-)
> 
> diff --git a/package/x11r7/mesa3d/mesa3d.mk b/package/x11r7/mesa3d/mesa3d.mk
> index cb0690d..21fc4cc 100644
> --- a/package/x11r7/mesa3d/mesa3d.mk
> +++ b/package/x11r7/mesa3d/mesa3d.mk
> @@ -8,7 +8,20 @@ MESA3D_SOURCE:=MesaLib-$(MESA3D_VERSION).tar.gz
>  MESA3D_SITE:=ftp://ftp.freedesktop.org/pub/mesa/$(MESA3D_VERSION)
>  
>  MESA3D_AUTORECONF = NO
> -MESA3D_CONF_OPT = --disable-egl --disable-glu --disable-glw --disable-glut --disable-gallium --with-driver=dri --with-dri-drivers=swrast
> +
> +# Mesa DRI drivers cannot be built statically, so we must force
> +# --disable-static even if the package infrastructure globally passes
> +# --enable-static.
> +MESA3D_CONF_OPT = 			\
> +	--disable-egl			\
> +	--disable-glu			\
> +	--disable-glw			\
> +	--disable-glut 			\
> +	--disable-gallium 		\
> +	--with-driver=dri 		\
> +	--with-dri-drivers=swrast	\
> +	--disable-static
> +
>  MESA3D_INSTALL_STAGING = YES
>  
>  MESA3D_DEPENDENCIES = xproto_glproto xlib_libXxf86vm xlib_libXdamage xlib_libXfixes xproto_dri2proto libdrm expat



-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list