mesa/tests: Link main-test with CLOCK_LIB.
authorVinson Lee <vlee@freedesktop.org>
Mon, 27 Mar 2017 18:57:48 +0000 (11:57 -0700)
committerVinson Lee <vlee@dropbox.com>
Mon, 27 Mar 2017 21:36:34 +0000 (14:36 -0700)
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>
src/mesa/main/tests/Makefile.am

index 18f750e4d483ae9e4bc39e1d5653d350084e055c..8b4598d9248b747f0fd0dc0c8c4817cf146e3685 100644 (file)
@@ -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