$OpenBSD: patch-mozilla_nsprpub_lib_tests_Makefile_in,v 1.3 2008/12/15 21:26:04 martynas Exp $
--- mozilla/nsprpub/lib/tests/Makefile.in.orig	Sun May  4 01:28:43 2008
+++ mozilla/nsprpub/lib/tests/Makefile.in	Fri Dec 12 05:57:31 2008
@@ -127,6 +127,12 @@ ifeq (,$(filter-out OpenBSD,$(OS_ARCH)))
     endif
 endif
 
+ifeq ($(OS_ARCH), OpenBSD)
+        ifeq ($(USE_PTHREADS),1)
+            EXTRA_LIBS = -lpthread
+        endif
+endif
+
 ifeq ($(OS_ARCH), OSF1)
 LDOPTS += -rpath $(PWD)/$(dist_libdir) -lpthread
 endif
