[Mesa-dev] [PATCH] glsl: Link glsl_compiler with CLOCK_LIB.

Timothy Arceri tarceri at itsqueeze.com
Wed Mar 22 09:08:42 UTC 2017


On 22/03/17 10:31, Vinson Lee wrote:
> Fix linking error with build.
>
>   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'

Maybe mention the plaform/distro where this is failing to build?

>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  src/compiler/Makefile.glsl.am |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/src/compiler/Makefile.glsl.am b/src/compiler/Makefile.glsl.am
> index f7be5eb..761fb93 100644
> --- a/src/compiler/Makefile.glsl.am
> +++ b/src/compiler/Makefile.glsl.am
> @@ -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 \
>


More information about the mesa-dev mailing list