[Mesa-dev] [PATCH] glsl: Add pthread libs to cache_test

Timothy Arceri timothy.arceri at collabora.com
Sun Oct 23 23:50:33 UTC 2016


On Sat, 2016-10-22 at 20:07 -0400, Rhys Kidd wrote:
> Fixes the following compile error:
> 
>   CCLD     glsl/tests/cache-test
> glsl/.libs/libglsl.a(libmesautil_la-mesa-sha1.o): In function
> `call_once':
> /mesa/src/util/../../include/c11/threads_posix.h:96: undefined
> reference to `pthread_once'

Interesting. Maybe add something to the commit message about this being
required when the sha1 library is libgcrypt.

Otherwise:

Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>

Thanks.

> 
> Signed-off-by: Rhys Kidd <rhyskidd at gmail.com>
> ---
>  src/compiler/Makefile.glsl.am | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/src/compiler/Makefile.glsl.am
> b/src/compiler/Makefile.glsl.am
> index 80dfb73..15bea6b 100644
> --- a/src/compiler/Makefile.glsl.am
> +++ b/src/compiler/Makefile.glsl.am
> @@ -62,8 +62,11 @@ glsl_tests_blob_test_LDADD =			
> 	\
>  
>  glsl_tests_cache_test_SOURCES =				\
>  	glsl/tests/cache_test.c
> +glsl_tests_cache_test_CFLAGS =				\
> +	$(PTHREAD_CFLAGS)
>  glsl_tests_cache_test_LDADD =				\
> -	glsl/libglsl.la
> +	glsl/libglsl.la					\
> +	$(PTHREAD_LIBS)
>  
>  glsl_tests_general_ir_test_SOURCES =			\
>  	glsl/tests/builtin_variable_test.cpp		\


More information about the mesa-dev mailing list