summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Kidd <[email protected]>2016-10-26 00:13:24 -0400
committerTimothy Arceri <[email protected]>2016-10-27 09:49:35 +1100
commit5c73ecaac487eba36e15f22be2e9396c4a0ffe46 (patch)
treef2fafd086ed1299445947407bf1d219ded7e36ff
parent8e5aed5b56bc390b974559d9586a60f62981e172 (diff)
glsl: Add pthread libs to cache_test
Fixes the following compile error, present when the SHA1 library is libgcrypt: 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' Signed-off-by: Rhys Kidd <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r--src/compiler/Makefile.glsl.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/Makefile.glsl.am b/src/compiler/Makefile.glsl.am
index 8cc0a4a22e1..8bfb902f11b 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 \