glsl: Link glsl_compiler with pthreads library.
authorJonathan Gray <jsg@jsg.id.au>
Mon, 10 Mar 2014 13:27:00 +0000 (07:27 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 11 Mar 2014 14:47:12 +0000 (08:47 -0600)
Fixes the following build error on OpenBSD:

./.libs/libglsl.a(builtin_functions.o)(.text+0x973): In function `mtx_lock':
../../include/c11/threads_posix.h:195: undefined reference to `pthread_mutex_lock'
./.libs/libglsl.a(builtin_functions.o)(.text+0x9a5): In function `mtx_unlock':
../../include/c11/threads_posix.h:248: undefined reference to `pthread_mutex_unlock'

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/glsl/Makefile.am

index 8516459927404aff0071fe5a73e6240dc06ae3c6..534eaa3853608c33349b2168f987ee9fb6dadee1 100644 (file)
@@ -128,7 +128,9 @@ glsl_compiler_SOURCES = \
        $(top_srcdir)/src/mesa/program/symbol_table.c \
        $(GLSL_COMPILER_CXX_FILES)
 
-glsl_compiler_LDADD = libglsl.la
+glsl_compiler_LDADD =                                  \
+       libglsl.la                                      \
+       $(PTHREAD_LIBS)
 
 glsl_test_SOURCES = \
        $(top_srcdir)/src/mesa/main/hash_table.c \