Mesa (master): glsl: Link glsl_test with pthreads library.
Emil Velikov
evelikov at kemper.freedesktop.org
Thu Jan 22 21:30:17 UTC 2015
Module: Mesa
Branch: master
Commit: c5be9c126d6ca9380cd381a5eb22554e4bb71a64
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c5be9c126d6ca9380cd381a5eb22554e4bb71a64
Author: Jonathan Gray <jsg at jsg.id.au>
Date: Fri Jan 9 12:33:17 2015 +1100
glsl: Link glsl_test with pthreads library.
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 at jsg.id.au>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
Cc: "10.4 10.3" <mesa-stable at lists.freedesktop.org>
---
src/glsl/Makefile.am | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/glsl/Makefile.am b/src/glsl/Makefile.am
index 01123bc..9d9f99a 100644
--- a/src/glsl/Makefile.am
+++ b/src/glsl/Makefile.am
@@ -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:
More information about the mesa-commit
mailing list