summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2017-03-27 11:57:48 -0700
committerVinson Lee <vlee@dropbox.com>2017-03-27 14:36:34 -0700
commitf1f1cb41d0a80230085e63e8de65aa58ff3872da (patch)
treee54fbffcb997ddd39f6794ff8b19a999252511dc /src/mesa/main
parent7dccd38b400d3a65da20ddefe282a7bb0b7ccb58 (diff)
mesa/tests: Link main-test with CLOCK_LIB.
Fix 'make check' linking error with glibc < 2.17. CXXLD main-test ../../../../src/mesa/.libs/libmesa.a(libmesautil_la-u_queue.o): In function `u_thread_get_time_nano': src/util/../../src/util/u_thread.h:84: undefined reference to `clock_gettime' Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/tests/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/tests/Makefile.am b/src/mesa/main/tests/Makefile.am
index 18f750e4d48..8b4598d9248 100644
--- a/src/mesa/main/tests/Makefile.am
+++ b/src/mesa/main/tests/Makefile.am
@@ -19,7 +19,8 @@ main_test_LDADD = \
$(top_builddir)/src/mesa/libmesa.la \
$(top_builddir)/src/gtest/libgtest.la \
$(PTHREAD_LIBS) \
- $(DLOPEN_LIBS)
+ $(DLOPEN_LIBS) \
+ $(CLOCK_LIB)
if HAVE_SHARED_GLAPI
AM_CPPFLAGS += -DHAVE_SHARED_GLAPI