Mesa (master): llvmpipe: Link tests with CLOCK_LIB.
Vinson Lee
vlee at kemper.freedesktop.org
Thu Dec 22 01:23:37 UTC 2016
Module: Mesa
Branch: master
Commit: ede8c02ab0f9c2bd7bb42d2398103674cb505f6c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ede8c02ab0f9c2bd7bb42d2398103674cb505f6c
Author: Vinson Lee <vlee at freedesktop.org>
Date: Fri Dec 2 17:44:34 2016 -0800
llvmpipe: Link tests with CLOCK_LIB.
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 at freedesktop.org>
---
src/gallium/drivers/llvmpipe/Makefile.am | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/llvmpipe/Makefile.am b/src/gallium/drivers/llvmpipe/Makefile.am
index 85ae0ae..562c2d6 100644
--- a/src/gallium/drivers/llvmpipe/Makefile.am
+++ b/src/gallium/drivers/llvmpipe/Makefile.am
@@ -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)
More information about the mesa-commit
mailing list