glsl: Link glsl_test with pthreads library.
authorJonathan Gray <jsg@jsg.id.au>
Fri, 9 Jan 2015 01:33:17 +0000 (12:33 +1100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Jan 2015 21:29:43 +0000 (21:29 +0000)
Otherwise pthread_mutex_lock will be an undefined reference
on OpenBSD.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88219
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Cc: "10.4 10.3" <mesa-stable@lists.freedesktop.org>
src/glsl/Makefile.am

index 01123bc151a0bdc4a039f9caaac6773a3c21279c..9d9f99a480bc2ab0162fb434437796f0cf2554cb 100644 (file)
@@ -157,7 +157,9 @@ glsl_test_SOURCES = \
        test_optpass.cpp \
        test_optpass.h
 
-glsl_test_LDADD = libglsl.la
+glsl_test_LDADD =                                      \
+       libglsl.la                                      \
+       $(PTHREAD_LIBS)
 
 # We write our own rules for yacc and lex below. We'd rather use automake,
 # but automake makes it especially difficult for a number of reasons: