[Mesa-dev] [PATCH] Don't build shared dricore when unneeded

Matt Turner mattst88 at gmail.com
Mon Jan 23 09:50:51 PST 2012


On Mon, Jan 23, 2012 at 9:00 AM, Jon TURNEY <jon.turney at dronecode.org.uk> wrote:
> Refine "always build shared dricore" so we don't build it if we don't need
> it because we aren't actually building any dri drivers because of --disable-driglx-direct
>
> Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
> ---
>  configure.ac |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 9599568..c76af5b 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1060,7 +1060,7 @@ DRI_CXXFLAGS='$(CXXFLAGS)'
>  DRI_LIB_DEPS='$(TOP)/src/mesa/libmesa.a'
>  MESA_MODULES='$(TOP)/src/mesa/libmesa.a'
>
> -if test "x$enable_dri" = xyes ; then
> +if test "x$enable_dri" = xyes && test "x$driglx_direct" = xyes ; then
>     DRICORE_GLSL_LIBS='$(TOP)/$(LIB_DIR)/libglsl.so'
>     DRICORE_LIBS='$(TOP)/$(LIB_DIR)/libdricore.so'
>     DRICORE_LIB_DEPS='-L$(TOP)/$(LIB_DIR) -Wl,-R$(DRI_DRIVER_INSTALL_DIR) -lglsl'
> --
> 1.7.5.1
>

Good idea.

Reviewed-by: Matt Turner <mattst88 at gmail.com>

Do you have commit access?


More information about the mesa-dev mailing list