$NetBSD$

--- nsprpub/pr/tests/Makefile.orig	2006-01-15 17:55:06.000000000 +0000
+++ nsprpub/pr/tests/Makefile
@@ -331,6 +331,13 @@ endif
 LDOPTS += -Xlinker -R $(PWD)/$(DIST)/lib
 endif
 
+ifeq ($(OS_ARCH),DragonFly)
+ifeq ($(USE_PTHREADS),1)
+EXTRA_LIBS = -pthread
+endif
+LDOPTS += -Xlinker -R $(PWD)/$(DIST)/lib
+endif
+
 ifeq ($(OS_ARCH),BSD_OS)
 EXTRA_LIBS = -ldl
 endif
