glsl: Link glsl_compiler with CLOCK_LIB.
authorVinson Lee <vlee@freedesktop.org>
Tue, 21 Mar 2017 23:24:29 +0000 (16:24 -0700)
committerVinson Lee <vlee@dropbox.com>
Wed, 22 Mar 2017 21:58:18 +0000 (14:58 -0700)
Fix linking error on CentOS 6.

  CXXLD  glsl_compiler
glsl/.libs/libstandalone.a(lt16-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>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/compiler/Makefile.glsl.am

index f7be5ebce9de29b13edec0399c05ab7f3f64d79f..761fb931ad5760526371a8c03031f3b8e62f15e6 100644 (file)
@@ -147,7 +147,8 @@ glsl_compiler_SOURCES = \
        glsl/main.cpp
 
 glsl_compiler_LDADD = \
-       glsl/libstandalone.la
+       glsl/libstandalone.la \
+       $(CLOCK_LIB)
 
 glsl_glsl_test_SOURCES = \
        glsl/test.cpp \