Make: Link test suites with pthread if PTHREAD is set
diff --git a/tests/Makefile b/tests/Makefile
index 4ef7417..4c784e0 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -53,6 +53,11 @@
LOCAL_LDFLAGS += -lz
endif
+# Pthread shared library extension
+ifdef PTHREAD
+LOCAL_LDFLAGS += -lpthread
+endif
+
# A test application is built for each suites/test_suite_*.data file.
# Application name is same as .data file's base name and can be
# constructed by stripping path 'suites/' and extension .data.