aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/libgl-xlib/Makefile.am
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-01-14 09:17:48 -0800
committerBrian Paul <[email protected]>2013-01-14 18:15:41 -0700
commitcb6ef3d112fa48fd3960583fd39c7ab11052c54f (patch)
tree92be5fe0d76ef3246251d16aeb99fa497ee5c345 /src/gallium/targets/libgl-xlib/Makefile.am
parent258453716f001eab1288d99765213221d0599ca4 (diff)
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 <[email protected]> Reviewed-by: Andreas Boll <[email protected]>
Diffstat (limited to 'src/gallium/targets/libgl-xlib/Makefile.am')
-rw-r--r--src/gallium/targets/libgl-xlib/Makefile.am3
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 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)