$OpenBSD$
--- threadlibs.c.orig	Thu Feb 16 23:07:15 2006
+++ threadlibs.c	Sat Sep  2 18:38:47 2006
@@ -15,6 +15,9 @@ int main()
 	|| defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS)
         printf("-lpthread\n");
 #   endif
+#   if defined(GC_OPENBSD_PTHREADS)
+        printf("-pthread\n");
+#   endif
 #   if defined(GC_FREEBSD_THREADS)
 #       if (__FREEBSD_version >= 500000)
           printf("-lpthread\n");
