[Mesa-dev] [PATCH] libgl-xlib: link with -lrt

Matt Turner mattst88 at gmail.com
Mon Jan 14 10:44:52 PST 2013


On Mon, Jan 14, 2013 at 10:37 AM, Brian Paul <brianp at vmware.com> wrote:
> 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.
> ---
>  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

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


More information about the mesa-dev mailing list