From cb6ef3d112fa48fd3960583fd39c7ab11052c54f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 14 Jan 2013 09:17:48 -0800 Subject: [PATCH] libgl-xlib: link with -lrt 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: Matt Turner Reviewed-by: Andreas Boll --- src/gallium/targets/libgl-xlib/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/targets/libgl-xlib/Makefile.am b/src/gallium/targets/libgl-xlib/Makefile.am index 2b697fc35d1..adeb05dcb96 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) -- 2.30.2