[Mesa-dev] [PATCH] scons: Use X11 modules if X11 is available.

Dan Nicholson dbn.lists at gmail.com
Sat Dec 15 16:43:19 PST 2012


On Sat, Dec 15, 2012 at 5:34 PM, Vinson Lee <vlee at freedesktop.org> wrote:
> This patch fixes these build errors.
> glxinit.c:18:25: error: GL/glxproto.h: No such file or directory
> glxinit.c:19:26: error: GL/glxtokens.h: No such file or directory
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  src/gallium/state_trackers/egl/SConscript | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/state_trackers/egl/SConscript b/src/gallium/state_trackers/egl/SConscript
> index 2f7ac7e..43b9dcb 100644
> --- a/src/gallium/state_trackers/egl/SConscript
> +++ b/src/gallium/state_trackers/egl/SConscript
> @@ -27,6 +27,7 @@ else:
>      if env['drm']:
>          env.PkgUseModules('DRM')
>      if env['x11']:
> +        env.PkgUseModules('X11')
>          env.Append(CPPDEFINES = ['HAVE_X11_BACKEND'])
>          env.Prepend(CPPPATH = [
>              '#/src/glx',

I'm not really familiar with the scons build, but would this make it
link with libX11 and friends? That seems like overkill when you just
need the glproto package installed to get the headers.

--
Dan


More information about the mesa-dev mailing list