Fix 'make check' linking errors with glibc < 2.17.
CXXLD glsl/glsl_test
glsl/.libs/libglsl.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>
$(PTHREAD_CFLAGS)
glsl_tests_cache_test_LDADD = \
glsl/libglsl.la \
- $(PTHREAD_LIBS)
+ $(PTHREAD_LIBS) \
+ $(CLOCK_LIB)
glsl_tests_general_ir_test_SOURCES = \
glsl/tests/array_refcount_test.cpp \
glsl/libglsl.la \
glsl/libstandalone.la \
$(top_builddir)/src/libglsl_util.la \
- $(PTHREAD_LIBS)
+ $(PTHREAD_LIBS) \
+ $(CLOCK_LIB)
glsl_tests_uniform_initializer_test_SOURCES = \
glsl/tests/copy_constant_to_storage_tests.cpp \
glsl/libglsl.la \
glsl/libstandalone.la \
$(top_builddir)/src/libglsl_util.la \
- $(PTHREAD_LIBS)
+ $(PTHREAD_LIBS) \
+ $(CLOCK_LIB)
# We write our own rules for yacc and lex below. We'd rather use automake,
# but automake makes it especially difficult for a number of reasons: