From ac5ab240f1c5fd2c920f9d048c20827c9e56f303 Mon Sep 17 00:00:00 2001 From: Peter Seiderer Date: Thu, 13 Jan 2022 22:26:05 +0100 Subject: [PATCH] package/mesa3d: fix glvnd option handling - enable glvnd option only in case OPENGL_GLX or OPENGL_EGL is enabled Fixes: - http://autobuild.buildroot.net/results/e97ad48f20a325f5757754a8be2bdb613c86e4ea .../build/mesa3d-21.3.3/meson.build:542:4: ERROR: Problem encountered: glvnd requires DRI based GLX and/or EGL Signed-off-by: Peter Seiderer Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/mesa3d/mesa3d.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk index 6907d8c94f..c572f9b1aa 100644 --- a/package/mesa3d/mesa3d.mk +++ b/package/mesa3d/mesa3d.mk @@ -271,10 +271,14 @@ MESA3D_CFLAGS += -mlong-jump-table-offsets endif ifeq ($(BR2_PACKAGE_LIBGLVND),y) +ifneq ($(BR2_PACKAGE_MESA3D_OPENGL_GLX)$(BR2_PACKAGE_MESA3D_OPENGL_EGL),) MESA3D_DEPENDENCIES += libglvnd MESA3D_CONF_OPTS += -Dglvnd=true else MESA3D_CONF_OPTS += -Dglvnd=false endif +else +MESA3D_CONF_OPTS += -Dglvnd=false +endif $(eval $(meson-package))