[Mesa-dev] [PATCH] libgl-xlib: link with -lrt
Brian Paul
brianp at vmware.com
Mon Jan 14 09:19:12 PST 2013
Fixes a runtime error:
glxgears: symbol lookup error: /home/brian/mesa/lib/gallium/libGL.so.1: undefined symbol: clock_gettime
Note: should this library only be linked if we're building on Linux?
The code that calls clock_gettime() is inside #ifdef PIPE_OS_LINUX.
---
src/gallium/targets/libgl-xlib/Makefile.am | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/gallium/targets/libgl-xlib/Makefile.am b/src/gallium/targets/libgl-xlib/Makefile.am
index 2b697fc..b2bb7d1 100644
--- a/src/gallium/targets/libgl-xlib/Makefile.am
+++ b/src/gallium/targets/libgl-xlib/Makefile.am
@@ -53,7 +53,9 @@ libGL_la_LIBADD = \
$(top_builddir)/src/mapi/glapi/libglapi.la \
$(top_builddir)/src/mesa/libmesagallium.la \
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
- -lpthread
+ -lpthread \
+ -lrt
+
if HAVE_MESA_LLVM
libGL_la_LIBADD += $(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la $(LLVM_LIBS)
--
1.7.3.4
More information about the mesa-dev
mailing list