[Mesa-dev] [PATCH] scons: Append x11 library path if linking x11 library.

Brian Paul brian.e.paul at gmail.com
Sun Nov 25 09:39:16 PST 2012


On Sat, Nov 17, 2012 at 12:53 AM, Vinson Lee <vlee at freedesktop.org> wrote:
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  src/gallium/targets/graw-xlib/SConscript  | 1 +
>  src/gallium/targets/libgl-xlib/SConscript | 1 +
>  src/mesa/drivers/x11/SConscript           | 1 +
>  3 files changed, 3 insertions(+)
>
> diff --git a/src/gallium/targets/graw-xlib/SConscript b/src/gallium/targets/graw-xlib/SConscript
> index a535f31..9cbe7bb 100644
> --- a/src/gallium/targets/graw-xlib/SConscript
> +++ b/src/gallium/targets/graw-xlib/SConscript
> @@ -11,6 +11,7 @@ env.Prepend(LIBS = [
>  ])
>
>  env.Append(LIBS = env['X11_LIBS'])
> +env.Append(LIBPATH = env['X11_LIBPATH'])
>
>  env.Append(CPPPATH = [
>      '#src/gallium/drivers',
> diff --git a/src/gallium/targets/libgl-xlib/SConscript b/src/gallium/targets/libgl-xlib/SConscript
> index 1b92c30..dc1ce89 100644
> --- a/src/gallium/targets/libgl-xlib/SConscript
> +++ b/src/gallium/targets/libgl-xlib/SConscript
> @@ -15,6 +15,7 @@ env.Append(CPPPATH = [
>  env.Append(CPPDEFINES = ['USE_XSHM'])
>
>  env.Prepend(LIBS = env['X11_LIBS'])
> +env.Prepend(LIBPATH = env['X11_LIBPATH'])
>
>  # when GLES is enabled, gl* and _glapi_* belong to bridge_glapi and
>  # shared_glapi respectively
> diff --git a/src/mesa/drivers/x11/SConscript b/src/mesa/drivers/x11/SConscript
> index cfa2815..984e6ce 100644
> --- a/src/mesa/drivers/x11/SConscript
> +++ b/src/mesa/drivers/x11/SConscript
> @@ -11,6 +11,7 @@ env.Append(CPPPATH = [
>  env.Append(CPPDEFINES = ['USE_XSHM'])
>
>  env.Prepend(LIBS = env['X11_LIBS'])
> +env.Prepend(LIBPATH = env['X11_LIBPATH'])
>
>  env.Prepend(LIBS = [
>      glapi,

Looks OK to me, but maybe you could say in the commit message what this fixes.

Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the mesa-dev mailing list