[Mesa-dev] [PATCH] libgl-xlib: link with -lrt
Andreas Boll
andreas.boll.dev at gmail.com
Mon Jan 14 11:36:58 PST 2013
2013/1/14 Brian Paul <brianp at vmware.com>:
> Fixes a runtime error:
>
> glxgears: symbol lookup error: /home/brian/mesa/lib/gallium/libGL.so.1: undefined symbol: clock_gettime
>
> v2: use $(CLOCK_LIB) and $(PTHREAD_LIBS) per Andreas Boll.
Reviewed-by: Andreas Boll <andreas.boll.dev at gmail.com>
> ---
> src/gallium/targets/libgl-xlib/Makefile.am | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/src/gallium/targets/libgl-xlib/Makefile.am b/src/gallium/targets/libgl-xlib/Makefile.am
> index 2b697fc..adeb05d 100644
> --- a/src/gallium/targets/libgl-xlib/Makefile.am
> +++ b/src/gallium/targets/libgl-xlib/Makefile.am
> @@ -53,7 +53,8 @@ libGL_la_LIBADD = \
> $(top_builddir)/src/mapi/glapi/libglapi.la \
> $(top_builddir)/src/mesa/libmesagallium.la \
> $(top_builddir)/src/gallium/auxiliary/libgallium.la \
> - -lpthread
> + $(PTHREAD_LIBS) \
> + $(CLOCK_LIB)
>
> if HAVE_MESA_LLVM
> libGL_la_LIBADD += $(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la $(LLVM_LIBS)
> --
> 1.7.3.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list