summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Kidd <rhyskidd@gmail.com>2016-10-26 04:13:24 (GMT)
committerEmil Velikov <emil.l.velikov@gmail.com>2016-12-24 13:03:53 (GMT)
commit241dc4634f47113243ddc6d02d4d73fc6f4e98e9 (patch)
treedc02ebd94bec3c5bf05b4d9f9ab5475a0780a2e0
parente851f2748773f205d89ded0c540378dfcc5ad565 (diff)
downloadexternal_mesa3d-241dc4634f47113243ddc6d02d4d73fc6f4e98e9.zip
external_mesa3d-241dc4634f47113243ddc6d02d4d73fc6f4e98e9.tar.gz
external_mesa3d-241dc4634f47113243ddc6d02d4d73fc6f4e98e9.tar.bz2
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 <rhyskidd@gmail.com> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com> (cherry picked from commit 5c73ecaac487eba36e15f22be2e9396c4a0ffe46)
-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 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 \