$OpenBSD: patch-boehm-gc_threadlibs_c,v 1.1.1.1 2016/09/04 16:20:15 pascal Exp $
--- boehm-gc/threadlibs.c.orig	Sun Nov  4 23:56:02 2012
+++ boehm-gc/threadlibs.c	Sat Jan 12 13:27:07 2013
@@ -16,6 +16,9 @@ int main()
 	|| defined(GC_GNU_THREADS)
         printf("-lpthread\n");
 #   endif
+#   if defined(GC_OPENBSD_THREADS)
+	printf("-pthread\n");
+#   endif
 #   if defined(GC_FREEBSD_THREADS)
 #       if (__FREEBSD_version >= 500000)
           printf("-lpthread\n");
