llvmpipe: Link tests with CLOCK_LIB.
authorVinson Lee <vlee@freedesktop.org>
Sat, 3 Dec 2016 01:44:34 +0000 (17:44 -0800)
committerVinson Lee <vlee@freedesktop.org>
Thu, 22 Dec 2016 01:23:05 +0000 (17:23 -0800)
Fix linking error with 'make check'.

  CXXLD  lp_test_format
../../../../src/gallium/auxiliary/.libs/libgallium.a(os_time.o): In function `os_time_get_nano':
src/gallium/auxiliary/os/os_time.c:59: undefined reference to `clock_gettime'

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
src/gallium/drivers/llvmpipe/Makefile.am

index 85ae0ae13d89cb29c4b59da60275518d05ee610f..562c2d6321c5331d2ee67181b887d6f0be498ada 100644 (file)
@@ -54,7 +54,8 @@ TEST_LIBS = \
        $(top_builddir)/src/util/libmesautil.la \
        $(LLVM_LIBS) \
        $(DLOPEN_LIBS) \
-       $(PTHREAD_LIBS)
+       $(PTHREAD_LIBS) \
+       $(CLOCK_LIB)
 
 lp_test_format_SOURCES = lp_test_format.c lp_test_main.c
 lp_test_format_LDADD = $(TEST_LIBS)